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:
authorChristian Kamm <mail@ckamm.de>2017-10-09 13:06:57 +0300
committerckamm <mail@ckamm.de>2017-10-24 11:00:20 +0300
commit66f0ce6616edcb6e44d235ae779170eb28c9c7c0 (patch)
treed3163e0d4e2adffd37c05f9a1d293a06c0a4b439 /src/gui/folderwatcher.cpp
parentfb2d31c9cedd10bc3b0cee7ccfff0756f6615386 (diff)
FolderWatcher: reliability and data-loss signal
Add state and signal to catch the following two known problems: * Linux: inotify user watch pool is exhausted. Folder watcher becomes unreliable. * Windows: buffer is too small, some notifications are lost but watching stays reliable.
Diffstat (limited to 'src/gui/folderwatcher.cpp')
-rw-r--r--src/gui/folderwatcher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp
index 0f5fee413..443956d19 100644
--- a/src/gui/folderwatcher.cpp
+++ b/src/gui/folderwatcher.cpp
@@ -68,6 +68,11 @@ bool FolderWatcher::pathIsIgnored(const QString &path)
return false;
}
+bool FolderWatcher::isReliable() const
+{
+ return _isReliable;
+}
+
void FolderWatcher::changeDetected(const QString &path)
{
QStringList paths(path);