#ifndef MIRALL_FOLDERWATCHER_H #define MIRALL_FOLDERWATCHER_H #include #include #include class INotify; namespace Mirall { class FolderWatcher : public QObject { Q_OBJECT public: FolderWatcher(const QString &path, QObject *parent = 0L); ~FolderWatcher(); QStringList folders() const; signals: void folderChanged(const QString &path); protected slots: void slotDirectoryChanged(int mask, const QString &path); private: QMutex _mutex; INotify *_inotify; }; } #endif