owncloud:sebas-mirall.git
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 agofirst port to C++
Duncan Mac-Vicar P [Wed, 16 Feb 2011 23:21:45 +0000 (00:21 +0100)]
first port to C++