blob: 9f7e3c0e7e2d381133a2ee48c142067fa7e49905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef MIRALL_FOLDERWATCHER_H
#define MIRALL_FOLDERWATCHER_H
#include <QObject>
#include <QString>
#include <QMutex>
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
|