Nebula
|
#include <filewatcher.h>
For registering callbacks for file modification events.
Inherits Thread.
Public Member Functions | |
FileWatcher () | |
constructor | |
virtual | ~FileWatcher () |
destructor | |
void | Setup () |
starts watcher thread | |
void | SetSpeed (double speed) |
void | Watch (Util::StringAtom const &folder, bool recursive, WatchFlags flags, WatchDelegate const &callback) |
Register Folder. | |
void | Unwatch (Util::StringAtom const &folder) |
unregister | |
Private Member Functions | |
__DeclareClass (FileWatcher) | |
__DeclareInterfaceSingleton (FileWatcher) | |
void | Update () |
checks for file modifications and calls registered callbacks | |
void | CheckQueue () |
void | DoWork () |
Private Attributes | |
Ptr< IO::IoServer > | ioServer |
Util::Dictionary< Util::StringAtom, EventHandlerData > | watchers |
Threading::SafeQueue< EventHandlerData > | watcherQueue |
double | interval |
IO::FileWatcher::FileWatcher | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
private |
|
private |
|
private |
void IO::FileWatcher::SetSpeed | ( | double | speed | ) |
void IO::FileWatcher::Setup | ( | ) |
starts watcher thread
void IO::FileWatcher::Unwatch | ( | Util::StringAtom const & | folder | ) |
unregister
|
private |
checks for file modifications and calls registered callbacks
void IO::FileWatcher::Watch | ( | Util::StringAtom const & | folder, |
bool | recursive, | ||
WatchFlags | flags, | ||
WatchDelegate const & | callback ) |
Register Folder.
|
private |
|
private |
|
private |
|
private |