NepomukDaemons
FileSystemWatcher Class Reference
Watches a file system by periodically checking the folder modification date. More...
#include <filesystemwatcher.h>

Public Slots | |
void | setFolders (const QStringList &folders) |
void | setInterval (int seconds) |
void | setWatchRecursively (bool) |
void | start (const QDateTime &startTime=QDateTime::currentDateTime()) |
void | stop () |
Signals | |
void | dirty (const QString &folder) |
Public Member Functions | |
FileSystemWatcher (QObject *parent=0) | |
QStringList | folders () const |
int | interval () const |
bool | watchRecursively () const |
~FileSystemWatcher () |
Detailed Description
Watches a file system by periodically checking the folder modification date.Definition at line 30 of file filesystemwatcher.h.
Constructor & Destructor Documentation
FileSystemWatcher::FileSystemWatcher | ( | QObject * | parent = 0 |
) |
Definition at line 199 of file filesystemwatcher.cpp.
FileSystemWatcher::~FileSystemWatcher | ( | ) |
Definition at line 206 of file filesystemwatcher.cpp.
Member Function Documentation
void FileSystemWatcher::dirty | ( | const QString & | folder | ) | [signal] |
Emitted if a folder is dirty, i.e.
its contents changed.
QStringList FileSystemWatcher::folders | ( | ) | const |
Definition at line 227 of file filesystemwatcher.cpp.
int FileSystemWatcher::interval | ( | ) | const |
Definition at line 239 of file filesystemwatcher.cpp.
void FileSystemWatcher::setFolders | ( | const QStringList & | folders | ) | [slot] |
Definition at line 245 of file filesystemwatcher.cpp.
void FileSystemWatcher::setInterval | ( | int | seconds | ) | [slot] |
Definition at line 257 of file filesystemwatcher.cpp.
void FileSystemWatcher::setWatchRecursively | ( | bool | r | ) | [slot] |
void FileSystemWatcher::start | ( | const QDateTime & | startTime = QDateTime::currentDateTime() |
) | [slot] |
Actually start checking the folders.
Once the FileSystemWatcher is started it will check the configured folders every interval()
seconds.
Be aware that changing the settings on a started FileSystemWatcher will have no effect until it is restarted.
Definition at line 213 of file filesystemwatcher.cpp.
void FileSystemWatcher::stop | ( | ) | [slot] |
Definition at line 220 of file filesystemwatcher.cpp.
bool FileSystemWatcher::watchRecursively | ( | ) | const |
Definition at line 233 of file filesystemwatcher.cpp.
The documentation for this class was generated from the following files: