Olivier Goffart
b4c116e2a2
Add the new directories comming from the sync in the watcher
2013-08-21 00:45:36 +02:00
Daniel Molkentin
c24d6bd71c
Notify user if there is a problem with the inotify watcher
2013-08-07 15:00:10 +02:00
Daniel Molkentin
8236dafb96
INotify backend: honor ignored files
...
Actually this needs a careful redesign,
but this is good enough to fix the issue.
Fixes : #763
2013-07-22 21:39:13 +02:00
Daniel Molkentin
c6219581f6
More work on ignore/exclude files:
...
- Introduce split between sytem and user files
- Add Editor
Current limitation: Picking up the changes requires
a restart
2013-07-05 16:54:11 +02:00
Klaas Freitag
817039ddf3
Simplify and fix startup: Steer starting of sync from folderman.
2013-02-19 17:24:10 +01:00
Klaas Freitag
8af257a4cd
Start fs watching with a delay of 2 seconds to don't catch the journal changes.
2012-12-06 18:38:45 +01:00
Daniel Molkentin
138a060df2
Fix Windows folder watcher
2012-12-06 17:53:04 +01:00
Daniel Molkentin
f20db6bbc1
Implement folder watching for OS X using FSEvents
2012-12-06 17:53:04 +01:00
Daniel Molkentin
d50d4d1a6f
Add windows backend, require Inotify on Linux
...
Dummy-backend yanked for now, no support for other Unixes...
2012-12-06 17:53:04 +01:00
Daniel Molkentin
214261e764
pimpl folderwatcher
2012-12-04 18:24:25 +01:00
Daniel Molkentin
eccd12923b
factor inotify out of folderwatcher
2012-12-04 17:48:14 +01:00
Klaas Freitag
4ef948bf3c
Use a better inotify implementation and use config.h. Fixes oCB #713 .
2012-07-20 17:13:23 +02:00
Klaas Freitag
6f7165f9f0
A lot of krazy2 (codechecker) fixes.
2012-05-21 16:48:49 +02:00
Klaas Freitag
29a38b82ad
Replace USE_WATCHER with USE_INOTIFY
2012-04-15 14:47:43 +02:00
Klaas Freitag
84ffebe26c
Let folderwatcher use the exclude list file.
...
simplified naming in mirallconfigfile class.
2012-03-28 12:23:34 +02:00
Klaas Freitag
1fc19647e5
Added #ifdef USE_WATCHER to switch between INotify and Polling
...
depending on the platform environment var set by Qt.
2012-02-29 15:25:16 +01:00
Klaas Freitag
07cfc08823
Use a hash to store inotified pathes.
2012-02-15 22:36:52 +01:00
Duncan Mac-Vicar P
58270990ed
force the initial sync even if the list is empty as this point
2011-04-08 10:48:22 +02:00
Duncan Mac-Vicar P
83eeeb4216
Simplify how the event queue works. Now it is just a timer
...
that gets restarted on every new event, and the processing starts
when no events reset the timer for the event interval.
2011-04-06 22:35:08 +02:00
Duncan Mac-Vicar P
2411b0c9b7
add proper licensing
2011-04-06 11:48:02 +02:00
Duncan Mac-Vicar P
9055cdc60d
move polling system to Folder where it belongs
2011-04-05 12:16:24 +02:00
Duncan Mac-Vicar P
4e45cab2c1
- lot of stability improvements
...
- the crash with threads goes away by using QMap
- add a polling timer
2011-04-04 18:41:14 +02:00
Duncan Mac-Vicar P
15579232f7
refactor the notification timer in a new method
...
some debug messages cleanup
2011-03-27 23:29:45 +02:00
Duncan Mac-Vicar P
6b8589f4dc
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.
2011-03-27 01:26:41 +01:00
Duncan Mac-Vicar P
64e4d531b3
sync process now runs, but no synchronization between sync processes
2011-03-25 18:25:56 +01:00
Duncan Mac-Vicar P
d885fe39f8
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
2011-03-22 23:03:43 +01:00
Duncan Mac-Vicar P
89361db55d
Only fire folderChanged if > 2 seconds since last event
2011-03-20 22:38:33 +01:00
Duncan Mac-Vicar P
d53490c67c
add accessor for root folder
2011-03-20 22:18:38 +01:00
Duncan Mac-Vicar P
3bb5869183
add some documentation
2011-03-20 22:17:23 +01:00
Duncan Mac-Vicar P
8b5c371012
- listen to the right events
...
- rename inotify signal
- pass also the cookie
2011-03-19 21:18:43 +01:00
Duncan Mac-Vicar P
bd5effe78c
- fix inotify/folderwatcher so that it uses full paths
...
- make the test pass using QSignalSpy
2011-03-18 13:54:32 +01:00
Duncan Mac-Vicar P
e6a135273d
- introduce a tmp dir class and rm-rf util function
...
- start a testcase for the folder watcher part
2011-03-18 01:14:45 +01:00
Duncan Mac-Vicar P
03194d3aae
Make the inotify interface work with multiple paths
2011-03-17 07:13:30 +01:00
Duncan Mac-Vicar P
5294bee2bf
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
2011-03-16 14:53:41 +01:00
Duncan Mac-Vicar P
b7a3fc7ab8
first port to C++
2011-02-17 00:21:45 +01:00