Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2012-02-29 18:25:16 +0400
committerKlaas Freitag <freitag@owncloud.com>2012-02-29 18:25:16 +0400
commit1fc19647e5b679408bb85e50538fcf9764a68997 (patch)
treec4fbc8a9155b27a4ee84d681d80959b0e891004a /src/mirall/folderwatcher.h
parentf6846a2107862a058ce608ad6fd5dc2cd71593d8 (diff)
Added #ifdef USE_WATCHER to switch between INotify and Polling
depending on the platform environment var set by Qt.
Diffstat (limited to 'src/mirall/folderwatcher.h')
-rw-r--r--src/mirall/folderwatcher.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mirall/folderwatcher.h b/src/mirall/folderwatcher.h
index a82ca23a7..27aa97997 100644
--- a/src/mirall/folderwatcher.h
+++ b/src/mirall/folderwatcher.h
@@ -22,8 +22,12 @@
#include <QTime>
#include <QHash>
+#include "mirall/folder.h"
+
class QTimer;
+#ifdef USE_WATCHER
class INotify;
+#endif
namespace Mirall {
@@ -112,8 +116,9 @@ protected slots:
private:
bool _eventsEnabled;
int _eventInterval;
-
+#ifdef USE_WATCHER
INotify *_inotify;
+#endif
QString _root;
// paths pending to notified
// QStringList _pendingPaths;