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

Signals | |
| void | changed () |
Public Member Functions | |
| FileWatch (const QString &file=QString(), QObject *parent=0) | |
| ~FileWatch () | |
| QString | fileName () const |
| void | setFileName (const QString &file) |
Detailed Description
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.
- 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 459 of file qca_support.h.
Constructor & Destructor Documentation
Standard constructor.
- Parameters:
-
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
Definition at line 214 of file dirwatch.cpp.
| QCA::FileWatch::~FileWatch | ( | ) |
Definition at line 221 of file dirwatch.cpp.
Member Function Documentation
| void QCA::FileWatch::changed | ( | ) | [signal] |
The changed signal is emitted when the file is changed (e.g.
modified, deleted)
| QString QCA::FileWatch::fileName | ( | ) | const |
The name of the file that is being monitored.
Definition at line 226 of file dirwatch.cpp.
| void QCA::FileWatch::setFileName | ( | const QString & | file | ) |
Change the file being monitored.
- Parameters:
-
file the name of the file to monitor
Definition at line 231 of file dirwatch.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference