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:
authorChristian Kamm <mail@ckamm.de>2018-11-05 14:12:49 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:58:17 +0300
commit9d55590d10ab29e81dfab1a3346fb94ca1de7425 (patch)
tree8c2f593ca030f69d725a7ea0c66a67fbfa8cac0f /src/gui/lockwatcher.h
parentda178c1352240fb5c72984549416ad7dff74e0f6 (diff)
Test: Add test for locked file tracking and propagation
Diffstat (limited to 'src/gui/lockwatcher.h')
-rw-r--r--src/gui/lockwatcher.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/lockwatcher.h b/src/gui/lockwatcher.h
index 13b845e12..f5e27bac6 100644
--- a/src/gui/lockwatcher.h
+++ b/src/gui/lockwatcher.h
@@ -51,6 +51,12 @@ public:
*/
void addFile(const QString &path);
+ /** Adjusts the default interval for checking whether the lock is still present */
+ void setCheckInterval(std::chrono::milliseconds interval);
+
+ /** Whether the path is being watched for lock-changes */
+ bool contains(const QString &path);
+
signals:
/** Emitted when one of the watched files is no longer
* being locked. */