Qt Cryptographic Architecture
|
#include <QtCrypto>
Signals | |
void | changed () |
Public Member Functions | |
QString | dirName () const |
DirWatch (const QString &dir=QString(), QObject *parent=nullptr) | |
void | setDirName (const QString &dir) |
Friends | |
class | Private |
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.
|
explicit |
Standard constructor.
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 |
QString QCA::DirWatch::dirName | ( | ) | const |
The name of the directory that is being monitored.
void QCA::DirWatch::setDirName | ( | const QString & | dir | ) |
Change the directory being monitored.
dir | the name of the directory to monitor |
|
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)