summaryrefslogtreecommitdiff
path: root/RealtimeSync/watcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/watcher.h')
-rw-r--r--RealtimeSync/watcher.h23
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
bgstack15