diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
commit | fd0853d2623dd278b08288331ed42e3be59252fb (patch) | |
tree | a7645daeaef8bdbed064faf4eb88e72cee58726c /RealtimeSync/watcher.h | |
parent | 2.1 (diff) | |
download | FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2 FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip |
2.2
Diffstat (limited to 'RealtimeSync/watcher.h')
-rw-r--r-- | RealtimeSync/watcher.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/RealtimeSync/watcher.h b/RealtimeSync/watcher.h new file mode 100644 index 00000000..1655eebf --- /dev/null +++ b/RealtimeSync/watcher.h @@ -0,0 +1,23 @@ +#ifndef WATCHER_H_INCLUDED +#define WATCHER_H_INCLUDED + +#include "functions.h" +#include <vector> +#include "../shared/fileError.h" + + +namespace RealtimeSync +{ + const int UI_UPDATE_INTERVAL = 100; //perform ui updates not more often than necessary, 100 seems to be a good value with only a minimal performance loss + + class WaitCallback + { + public: + virtual ~WaitCallback() {} + virtual void requestUiRefresh() = 0; //opportunity to abort must be implemented in a frequently executed method like requestUiRefresh() + }; + + void waitForChanges(const std::vector<wxString>& dirNames, WaitCallback* statusHandler); //throw(FreeFileSync::FileError); +} + +#endif // WATCHER_H_INCLUDED |