diff options
author | Christian Kamm <mail@ckamm.de> | 2018-11-05 14:12:49 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2018-11-06 12:03:25 +0300 |
commit | 2bc1baa5e24ba30e1fea8647214749856d1342e4 (patch) | |
tree | 2cc21acec56d6e4539be0fb66b73f77c6f6a9992 /src/gui/lockwatcher.h | |
parent | a9599b4ccc7a20f761e0282560a4fcc1d36bedbf (diff) |
Test: Add test for locked file tracking and propagation
Diffstat (limited to 'src/gui/lockwatcher.h')
-rw-r--r-- | src/gui/lockwatcher.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/lockwatcher.h b/src/gui/lockwatcher.h index ba2d8f8a7..ae8f2cd01 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. */ |