Qt Cryptographic Architecture
|
#include <QtCrypto>
Signals | |
void | changed () |
Public Member Functions | |
QString | fileName () const |
FileWatch (const QString &file=QString(), QObject *parent=nullptr) | |
void | setFileName (const QString &file) |
Friends | |
class | Private |
Support class to monitor a file for activity.
FileWatch monitors a specified file for any changes. When the file changes, the changed() signal is emitted.
|
explicit |
Standard constructor.
file | the name of the file to watch. If not in this object, you can set it using setFileName() |
parent | the parent object for this object |
QString QCA::FileWatch::fileName | ( | ) | const |
The name of the file that is being monitored.
void QCA::FileWatch::setFileName | ( | const QString & | file | ) |
Change the file being monitored.
file | the name of the file to monitor |
|
signal |
The changed signal is emitted when the file is changed (e.g.
modified, deleted)