summaryrefslogtreecommitdiff
path: root/RealtimeSync/watcher.h
blob: 2f3990c28f6c7274b53d80420e96bcb592af1585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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