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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2015-07-14 13:00:22 +0300
committerKlaas Freitag <freitag@owncloud.com>2015-07-15 16:54:41 +0300
commit711ae1d347f2d9795511e1d34c363bc1e17f10da (patch)
tree64871da3766910b2ebefbe50618500567b796655 /src/gui/folderwatcher.h
parenta4336092f61fe87b372f6853d2549c097c8f3860 (diff)
FolderWatcher: Add flag to ignore hidden files (or not).
Diffstat (limited to 'src/gui/folderwatcher.h')
-rw-r--r--src/gui/folderwatcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/folderwatcher.h b/src/gui/folderwatcher.h
index 7a7a41dbc..b0f529940 100644
--- a/src/gui/folderwatcher.h
+++ b/src/gui/folderwatcher.h
@@ -77,6 +77,10 @@ public:
/* Check if the path is ignored. */
bool pathIsIgnored( const QString& path );
+ /* set if the folderwatcher ignores events of hidden files */
+ void setIgnoreHidden(bool ignore);
+ bool ignoreHidden();
+
signals:
/** Emitted when one of the watched directories or one
* of the contained files is changed. */
@@ -98,6 +102,7 @@ private:
QStringList _ignores;
QTime _timer;
QSet<QString> _lastPaths;
+ bool _ignoreHidden;
friend class FolderWatcherPrivate;
};