diff options
author | Christian Kamm <mail@ckamm.de> | 2019-06-13 10:59:01 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2019-06-14 09:04:16 +0300 |
commit | 831e718b0c07fbfb2179eeebe25433575fac4d16 (patch) | |
tree | 37290ae80fcaafd868aa545852e9c37a91e1a7e0 /src/gui/folderwatcher.h | |
parent | 2bba296e963e4a7107704206a86e4761c22f2791 (diff) |
FolderWatcher: Become unreliable if test notification fails #7241
Necessary for some filesystems on windows that don't have full file
watching capabilities.
Diffstat (limited to 'src/gui/folderwatcher.h')
-rw-r--r-- | src/gui/folderwatcher.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/folderwatcher.h b/src/gui/folderwatcher.h index 8e28efe65..3b92d7070 100644 --- a/src/gui/folderwatcher.h +++ b/src/gui/folderwatcher.h @@ -71,6 +71,14 @@ public: */ bool isReliable() const; + /** + * Triggers a change in the path and verifies a notification arrives. + * + * If no notification is seen, the folderwatcher marks itself as unreliable. + * The path must be ignored by the watcher. + */ + void startNotificatonTest(const QString &path); + /// For testing linux behavior only int testLinuxWatchCount() const; @@ -110,6 +118,9 @@ private: Folder *_folder; bool _isReliable = true; + /** Path of the expected test notification */ + QString _testNotificationPath; + friend class FolderWatcherPrivate; }; } |