Qt Cryptographic Architecture: QCA::DirWatch Class Reference

# QCA::DirWatch Class Reference
[QCA user API]

Support class to monitor a directory for activity. More...

`#include <QtCrypto>`

Inheritance diagram for QCA::DirWatch:

Collaboration diagram for QCA::DirWatch:

[legend]

List of all members.

## Signals
void | changed ()
## Public Member Functions
QString | dirName () const
| DirWatch (const QString &dir=QString(), QObject *parent=0)
void | setDirName (const QString &dir)
## Friends
class | Private

## 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.

## Constructor & Destructor Documentation

QCA::DirWatch::DirWatch | ( | const QString & | dir = `QString()`,
|  | QObject * | parent = `0` |
| ) |  |  | `[explicit]`

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

## 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.

void QCA::DirWatch::setDirName | ( | const QString & | dir | ) |

Change the directory being monitored.

Parameters:

  | dir | the name of the directory to monitor

The documentation for this class was generated from the following file:

- qca_support.h