27#error "not implemented"
For registering callbacks for file modification events.
Definition filewatcher.h:72
Util::Dictionary< Util::StringAtom, EventHandlerData > watchers
Definition filewatcher.h:101
double interval
Definition filewatcher.h:103
Ptr< IO::IoServer > ioServer
Definition filewatcher.h:100
virtual ~FileWatcher()
destructor
Definition filewatcher.cc:28
FileWatcher()
constructor
Definition filewatcher.cc:19
void DoWork()
Definition filewatcher.cc:122
__DeclareInterfaceSingleton(FileWatcher)
void CheckQueue()
Definition filewatcher.cc:96
Threading::SafeQueue< EventHandlerData > watcherQueue
Definition filewatcher.h:102
__DeclareClass(FileWatcher)
void Unwatch(Util::StringAtom const &folder)
unregister
Definition filewatcher.cc:85
void Watch(Util::StringAtom const &folder, bool recursive, WatchFlags flags, WatchDelegate const &callback)
Register Folder.
Definition filewatcher.cc:74
void Setup()
starts watcher thread
Definition filewatcher.cc:49
void Update()
checks for file modifications and calls registered callbacks
Definition filewatcher.cc:62
void SetSpeed(double speed)
Definition filewatcher.cc:40
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Thread-safe version of Util::Queue.
Definition safequeue.h:27
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
A StringAtom.
Definition stringatom.h:22
Instances of wrapped stream classes.
Definition orientation.cc:10
std::function< void(WatchEvent const &)> WatchDelegate
Definition filewatcher.h:59
WatchEventType
Definition filewatcher.h:36
@ Deleted
Definition filewatcher.h:38
@ Created
Definition filewatcher.h:37
@ NameChange
Definition filewatcher.h:39
@ Modified
Definition filewatcher.h:40
WatchFlags
Definition filewatcher.h:44
@ NameChanged
Definition filewatcher.h:45
@ Write
Definition filewatcher.h:47
@ Creation
Definition filewatcher.h:49
@ SizeChanged
Definition filewatcher.h:46
@ Access
Definition filewatcher.h:48
Definition filewatcher.h:63
FileWatcherPlatform data
Definition filewatcher.h:67
WatchFlags flags
Definition filewatcher.h:66
Util::StringAtom folder
Definition filewatcher.h:65
WatchDelegate callback
Definition filewatcher.h:64
Definition filewatcher.h:54
Util::StringAtom folder
Definition filewatcher.h:56
WatchEventType type
Definition filewatcher.h:55
Util::String file
Definition filewatcher.h:57
Nebula's universal string class.
Definition string.h:50
#define N_BIT(x)
Definition types.h:59