#include <FsWatcher.h>

Public Types | |
| enum | WatchOptions { NotifyUnique = 1, SkipEmptyFiles = 2 } |
Public Types inherited from FinTP::AbstractWatcher | |
| typedef WorkItemPool < NotificationObject > | NotificationPool |
Public Member Functions | |
| FsWatcher (void(*callback)(const NotificationObject *), const string &path=".", const string &filter="") | |
| FsWatcher (NotificationPool *notificationPool, const string &path=".", const string &filter="") | |
| ~FsWatcher () | |
| void | setFilter (const string &filter) |
| void | setPath (const string &path) |
| void | setWatchOptions (int options) |
Public Member Functions inherited from FinTP::AbstractWatcher | |
| void | setCallback (void(*callback)(const NotificationObject *)) |
| void | setNotificationPool (NotificationPool *notificationPool) |
| void | setIdleCallback (void(*callback)(void), unsigned int seconds) |
| virtual | ~AbstractWatcher () |
| void | setEnableRaisingEvents (bool val) |
| void | setObjectPrepareMethod (void *(*prepareCallback)(void *)) |
| void | setNotificationType (const NotificationObject::NotificationType notifType) |
| pthread_t | getThreadId () |
| void | waitForExit () |
Protected Member Functions | |
| void | internalScan () |
| void | initScanPaths (const string &paths) |
Protected Member Functions inherited from FinTP::AbstractWatcher | |
| AbstractWatcher (NotificationPool *notificationPool, void *(*prepareCallback)(void *object)=NULL) | |
| AbstractWatcher (void(*callback)(const NotificationObject *), void *(*prepareCallback)(void *object)=NULL) | |
Private Attributes | |
| int | m_WatchOptions |
| string | m_Folder |
| string | m_Filter |
| vector< string > | m_ScanPaths |
Additional Inherited Members | |
Protected Attributes inherited from FinTP::AbstractWatcher | |
| void(* | m_Callback )(const NotificationObject *notification) |
| void *(* | m_PrepareCallback )(void *object) |
| void(* | m_IdleCallback )(void) |
| pthread_t | m_ScanThreadId |
| bool | m_Enabled |
| NotificationObject::NotificationType | m_NotificationType |
| unsigned int | m_IdleTimeout |
| NotificationPool * | m_NotificationPool |
|
explicit |
|
explicit |
| FsWatcher::~FsWatcher | ( | ) |
|
protected |
|
protectedvirtual |
Implements FinTP::AbstractWatcher.
| void FsWatcher::setFilter | ( | const string & | filter | ) |
| void FsWatcher::setPath | ( | const string & | path | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |