owncloud:sebas-mirall.git
6 years agoonly for transfer transfer
Duncan Mac-Vicar P [Sun, 3 Apr 2011 22:52:51 +0000 (00:52 +0200)]
only for transfer

6 years ago- refactor tests repeat-myself with a cmake macro
Duncan Mac-Vicar P [Thu, 31 Mar 2011 18:26:51 +0000 (20:26 +0200)]
- refactor tests repeat-myself with a cmake macro
- enable cmake testing

6 years agounneeded
Duncan Mac-Vicar P [Thu, 31 Mar 2011 18:26:32 +0000 (20:26 +0200)]
unneeded

6 years agoIf the first event happens before 5 secs after starting the
Duncan Mac-Vicar P [Thu, 31 Mar 2011 17:07:45 +0000 (19:07 +0200)]
If the first event happens before 5 secs after starting the
program, it will always cause it to queue it to avoid event
flood (5 secs). So don't init the QTime for last event, and then
check if it is null.

6 years agoI missunderstood how mkdtemp worked. Allocate a buffer duplicating
Duncan Mac-Vicar P [Thu, 31 Mar 2011 17:06:30 +0000 (19:06 +0200)]
I missunderstood how mkdtemp worked. Allocate a buffer duplicating
the template. Then free this buffer.

6 years ago- Use a full sync (without -path) the first time
Duncan Mac-Vicar P [Thu, 31 Mar 2011 06:19:04 +0000 (08:19 +0200)]
- Use a full sync (without -path) the first time
  unison is invoked
- disable -confirmbigdel

6 years agoadd testcases for unison
Duncan Mac-Vicar P [Wed, 30 Mar 2011 21:36:30 +0000 (23:36 +0200)]
add testcases for unison

6 years agoshow only a summary of subdirectories
Duncan Mac-Vicar P [Tue, 29 Mar 2011 20:23:42 +0000 (22:23 +0200)]
show only a summary of subdirectories

6 years ago* Missing brackets changed all logic around an 'if'
Duncan Mac-Vicar P [Mon, 28 Mar 2011 09:54:10 +0000 (11:54 +0200)]
* Missing brackets changed all logic around an 'if'
* Improve debug output

6 years agorefactor the notification timer in a new method
Duncan Mac-Vicar P [Sun, 27 Mar 2011 21:29:45 +0000 (23:29 +0200)]
refactor the notification timer in a new method
some debug messages cleanup

6 years agoWhen syncing, disable event notifier and start accumulating them
Duncan Mac-Vicar P [Sun, 27 Mar 2011 00:26:41 +0000 (01:26 +0100)]
When syncing, disable event notifier and start accumulating them
until the sync is done. When they are enabled again, a forced
event is scheduled to empty the queue.

6 years agosync process now runs, but no synchronization between sync processes
Duncan Mac-Vicar P [Fri, 25 Mar 2011 17:25:56 +0000 (18:25 +0100)]
sync process now runs, but no synchronization between sync processes

6 years agoMerge branch 'fix_inotify'
Duncan Mac-Vicar P [Tue, 22 Mar 2011 22:21:56 +0000 (23:21 +0100)]
Merge branch 'fix_inotify'

Conflicts:
src/mirall/folder.cpp
src/mirall/folder.h

6 years agoImplement an event queue: fix_inotify
Duncan Mac-Vicar P [Tue, 22 Mar 2011 22:03:43 +0000 (23:03 +0100)]
Implement an event queue:

- If FolderWatcher receives a inotify event in less than 5
  seconds from the last one, then the paths are queued and a timer
  is setup for 5 seconds more. New events are queued if a timer
  is running. The next event after the time gap is due will process
  the full path list

6 years agoThe unison folder class.
Duncan Mac-Vicar P [Sun, 20 Mar 2011 23:58:53 +0000 (00:58 +0100)]
The unison folder class.

May be factor it out in a external process tool folder type later.

6 years agomove the subfolder list function to FileUtils
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:43:03 +0000 (22:43 +0100)]
move the subfolder list function to FileUtils

6 years agoOnly fire folderChanged if > 2 seconds since last event
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:38:33 +0000 (22:38 +0100)]
Only fire folderChanged if > 2 seconds since last event

6 years agoadd accessor for root folder
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:18:38 +0000 (22:18 +0100)]
add accessor for root folder

6 years agoadd some documentation
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:17:23 +0000 (22:17 +0100)]
add some documentation

6 years agoMake the socket read loop more robust, and handle the EINVAL when
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:13:40 +0000 (22:13 +0100)]
Make the socket read loop more robust, and handle the EINVAL when
the read buffer is too small.

6 years ago- listen to the right events
Duncan Mac-Vicar P [Sat, 19 Mar 2011 20:18:43 +0000 (21:18 +0100)]
- listen to the right events
- rename inotify signal
- pass also the cookie

6 years ago- fix inotify/folderwatcher so that it uses full paths
Duncan Mac-Vicar P [Fri, 18 Mar 2011 12:54:32 +0000 (13:54 +0100)]
- fix inotify/folderwatcher so that it uses full paths
- make the test pass using QSignalSpy

6 years ago- introduce a tmp dir class and rm-rf util function
Duncan Mac-Vicar P [Fri, 18 Mar 2011 00:14:45 +0000 (01:14 +0100)]
- introduce a tmp dir class and rm-rf util function
- start a testcase for the folder watcher part

6 years agoMake the inotify interface work with multiple paths
Duncan Mac-Vicar P [Thu, 17 Mar 2011 06:13:30 +0000 (07:13 +0100)]
Make the inotify interface work with multiple paths

6 years agoInfrastructure for inotify. To replace QFileSystemWatcher, which, due
Duncan Mac-Vicar P [Wed, 16 Mar 2011 13:50:34 +0000 (14:50 +0100)]
Infrastructure for inotify. To replace QFileSystemWatcher, which, due
to a Qt bug, can't see modified files.
See http://qt.gitorious.org/qt/qt/merge_requests/2301

6 years agoreact to its own signals to set the icons
Duncan Mac-Vicar P [Thu, 17 Feb 2011 14:10:06 +0000 (15:10 +0100)]
react to its own signals to set the icons

6 years agofix defines
Duncan Mac-Vicar P [Thu, 17 Feb 2011 14:10:03 +0000 (15:10 +0100)]
fix defines

6 years agorename action to openAction to add also forgetAction and others later
Duncan Mac-Vicar P [Thu, 17 Feb 2011 10:27:05 +0000 (11:27 +0100)]
rename action to openAction to add also forgetAction and others later

6 years agofirst port to C++
Duncan Mac-Vicar P [Wed, 16 Feb 2011 23:21:45 +0000 (00:21 +0100)]
first port to C++