Watches object additions and removals in a directory.
#include <qpps/dirwatcher.h> namespace QPps { class QPPS_EXPORT DirWatcher : public QObject { Q_OBJECT public: explicit DirWatcher( const QString &path, QObject *parent = 0 ); ~DirWatcher(); bool isValid() const; QString errorString() const; QString path() const; QStringList objectNames() const; Q_SIGNALS: void objectAdded( const QString &name ); void objectRemoved( const QString &name ); }; }
Watches object additions and removals in a directory. The DirWatcher class uses a feature of the PPS service to monitor object additions and removals at specific paths. Also, this class can list the current objects in a particular directory and can signal object additions and removals.