diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2012-12-06 19:26:27 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2012-12-06 20:53:04 +0400 |
commit | 138a060df22a6bb962bebe4b8470b53a4039f0da (patch) | |
tree | 2a0015092fa7af7f5aa6b18fe2161eff0bf38666 /src/mirall/folderwatcher_win.h | |
parent | 6678beadabd698a2f501a4b3306bd5e0e49f1330 (diff) |
Fix Windows folder watcher
Diffstat (limited to 'src/mirall/folderwatcher_win.h')
-rw-r--r-- | src/mirall/folderwatcher_win.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mirall/folderwatcher_win.h b/src/mirall/folderwatcher_win.h index f8dc5b9dc..85c728bd7 100644 --- a/src/mirall/folderwatcher_win.h +++ b/src/mirall/folderwatcher_win.h @@ -16,6 +16,7 @@ #define MIRALL_FOLDERWATCHER_WIN_H #include <QThread> +#include <windows.h> namespace Mirall { @@ -27,15 +28,19 @@ class WatcherThread : public QThread { Q_OBJECT public: WatcherThread(const QString &path) : - QThread(), _path(path) {} + QThread(), _path(path), _handle(0) {} + ~WatcherThread(); + +protected: void run(); signals: - void changed(); + void changed(const QString &path); private: QString _path; + HANDLE _handle; }; class FolderWatcherPrivate : public QObject { |