|
Trippin Cyril
|
An inotify wrapper class. More...
#include <Files.h>
Public Member Functions | |
| bool | Register (const String &directory, FileObserverCallback *callback) |
| Registers a FileObserverCallback for directory. More... | |
| bool | Unregister (const String &directory) |
| Unregisters a directory from being watched. More... | |
| size_t | amountWatchedFolders () |
Static Public Member Functions | |
| static FileObserver * | Get () |
An inotify wrapper class.
|
inline |
|
inlinestatic |
FileObserver is currently a singleton, use this method to get it.
| bool trippingcyril::FileObserver::Register | ( | const String & | directory, |
| FileObserverCallback * | callback | ||
| ) |
Registers a FileObserverCallback for directory.
| directory | The directory to watch |
| callback | The FileObserverCallback to use for this directory, can't be NULL |
| bool trippingcyril::FileObserver::Unregister | ( | const String & | directory | ) |
Unregisters a directory from being watched.
| directory | The directory to stop watching |
1.8.6