main
Last change
on this file was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
565 bytes
|
Rev | Line | |
---|
[0c6b92a] | 1 | #ifndef FS_EVENTS_H
|
---|
| 2 | #define FS_EVENTS_H
|
---|
| 3 |
|
---|
| 4 | #include <CoreServices/CoreServices.h>
|
---|
| 5 | #include "../Backend.hh"
|
---|
| 6 |
|
---|
| 7 | class FSEventsBackend : public Backend {
|
---|
| 8 | public:
|
---|
| 9 | void start() override;
|
---|
| 10 | ~FSEventsBackend();
|
---|
| 11 | void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override;
|
---|
| 12 | void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override;
|
---|
| 13 | void subscribe(WatcherRef watcher) override;
|
---|
| 14 | void unsubscribe(WatcherRef watcher) override;
|
---|
| 15 | private:
|
---|
| 16 | void startStream(WatcherRef watcher, FSEventStreamEventId id);
|
---|
| 17 | CFRunLoopRef mRunLoop;
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.