zeus::TFileSystemWatcher Class Reference
#include <FileSystemWatcher.h>
List of all members.
Detailed Description
This class watches a file system and generates call backs. The call backs are posted using a communication pipe
Constructor & Destructor Documentation
| TFileSystemWatcher::TFileSystemWatcher |
( |
const IString & |
rPath, |
|
|
bool |
bIncludeSubTree = true | |
|
) |
| | |
Creates a file system watcher
- Parameters:
-
| rPath | : Name of the directory |
| TFileSystemWatcher::~TFileSystemWatcher |
( |
|
) |
[protected, virtual] |
Destroys the file system watcher
Member Function Documentation
| void TFileSystemWatcher::start |
( |
|
) |
|
Starts the file watching process
| void TFileSystemWatcher::stop |
( |
|
) |
|
Stopps the file watching process
| bool zeus::TFileSystemWatcher::isStarted |
( |
|
) |
const [inline] |
Checks if the watcher has been started
| void TFileSystemWatcher::reset |
( |
|
) |
|
Resets the file system watcher. All files are posted to the observers
| TString zeus::TFileSystemWatcher::getWatchedPath |
( |
|
) |
const [inline] |
Returns the path of the file system watcher
| Retval MQUALIFIER TFileSystemWatcher::attach |
( |
IObserver & |
rObserver |
) |
[virtual] |
| Retval MQUALIFIER TFileSystemWatcher::detach |
( |
IObserver & |
rObserver |
) |
[virtual] |
| virtual Retval MQUALIFIER zeus::TFileSystemWatcher::askForInterface |
( |
Uint |
uiInterfaceID, |
|
|
IZUnknown *& |
rpIface | |
|
) |
| | [virtual] |
| virtual void MQUALIFIER zeus::TFileSystemWatcher::addRef |
( |
|
) |
const [virtual] |
| virtual void MQUALIFIER zeus::TFileSystemWatcher::release |
( |
|
) |
const [virtual] |
| void MQUALIFIER TFileSystemWatcher::execute |
( |
|
) |
[protected, virtual] |
| void TFileSystemWatcher::onFileCreated |
( |
const IString & |
rFileName |
) |
[protected, virtual] |
Callback if a file has been created
- Parameters:
-
| rFileName | : Name of the file |
| void TFileSystemWatcher::onFileRemoved |
( |
const IString & |
rFileName |
) |
[protected, virtual] |
Callback if a file has been deleted
- Parameters:
-
| rFileName | : Name of the file |
| void TFileSystemWatcher::onFileChanged |
( |
const IString & |
rFileName |
) |
[protected, virtual] |
Callback if a file has been changed
- Parameters:
-
| rFileName | : Name of the file |
| void TFileSystemWatcher::onFileRenamed |
( |
const IString & |
rOldFileName, |
|
|
const IString & |
rNewFileName | |
|
) |
| | [protected, virtual] |
Callback if a file has been renamed
- Parameters:
-
| rOldFileName | : old file name |
| rNewFileName | : new file name |
| void TFileSystemWatcher::onUnknownAction |
( |
const IString & |
rFileName |
) |
[protected, virtual] |
Unknown action on file
- Parameters:
-
| rFileName | : Name of the file |
The documentation for this class was generated from the following files: