diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-06-21 14:28:40 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-06-21 15:05:21 +0300 |
commit | 031d59ccce7c9a98946617031c9b1c7bc2262c9a (patch) | |
tree | 646b8728584a0d2ce56b44e139384877f7e75e34 /src/gui/lockwatcher.h | |
parent | 79d41c7a245e6162f79f362f3aa1263b2ecdec62 (diff) |
Require exclusive locks for vfs and renames
Fixes: #8761
Diffstat (limited to 'src/gui/lockwatcher.h')
-rw-r--r-- | src/gui/lockwatcher.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/lockwatcher.h b/src/gui/lockwatcher.h index 20badcf51..04eb4139d 100644 --- a/src/gui/lockwatcher.h +++ b/src/gui/lockwatcher.h @@ -15,6 +15,7 @@ #pragma once #include "config.h" +#include "filesystem.h" #include <QList> #include <QObject> @@ -51,7 +52,7 @@ public: * If the file is not locked later on, the fileUnlocked signal will be * emitted once. */ - void addFile(const QString &path); + void addFile(const QString &path, OCC::FileSystem::LockMode mode); /** Adjusts the default interval for checking whether the lock is still present */ void setCheckInterval(std::chrono::milliseconds interval); @@ -68,7 +69,7 @@ private slots: void checkFiles(); private: - QSet<QString> _watchedPaths; + QMap<QString, FileSystem::LockMode> _watchedPaths; QTimer _timer; }; } |