qca
QCA::DirWatch Class Reference
[QCA user API]
Support class to monitor a directory for activity. More...
#include <QtCrypto>
Inheritance diagram for QCA::DirWatch:

Signals | |
| void | changed () |
Public Member Functions | |
| DirWatch (const QString &dir=QString(), QObject *parent=0) | |
| ~DirWatch () | |
| QString | dirName () const |
| void | setDirName (const QString &dir) |
Detailed Description
Support class to monitor a directory for activity.
DirWatch monitors a specified file for any changes. When the directory changes, the changed() signal is emitted.
- Note:
- QFileSystemWatcher has very similar functionality to this class. You should evaluate this class and QFileSystemWatcher to determine which better suits your application needs.
Definition at line 401 of file qca_support.h.
Constructor & Destructor Documentation
Standard constructor.
- Parameters:
-
dir the name of the directory to watch. If not set in the constructor, you can set it using setDirName() parent the parent object for this object
Definition at line 76 of file dirwatch.cpp.
| QCA::DirWatch::~DirWatch | ( | ) |
Definition at line 83 of file dirwatch.cpp.
Member Function Documentation
| void QCA::DirWatch::changed | ( | ) | [signal] |
The changed signal is emitted when the directory is changed (e.g.
modified by addition or deletion of a file within the directory, or the deletion of the directory)
| QString QCA::DirWatch::dirName | ( | ) | const |
The name of the directory that is being monitored.
Definition at line 88 of file dirwatch.cpp.
| void QCA::DirWatch::setDirName | ( | const QString & | dir | ) |
Change the directory being monitored.
- Parameters:
-
dir the name of the directory to monitor
Definition at line 93 of file dirwatch.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference