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:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-05-05 13:10:17 +0300
committerClaudio Cambra <claudio.cambra@gmail.com>2022-05-16 17:42:20 +0300
commit364d02a13f753f9e091f96305c55afddd8703cdd (patch)
tree80807f6c455cb4f0695c6cae8fd5dc951017f16a /src/common
parent4d3b6d1d1ed81a0e0a765e0c9022072338b87d54 (diff)
Actually reset menu when user accounts are added or removed
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/vfs.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/common/vfs.h b/src/common/vfs.h
index 259dadbe7..19160e341 100644
--- a/src/common/vfs.h
+++ b/src/common/vfs.h
@@ -168,24 +168,24 @@ public:
* If the remote metadata changes, the local placeholder's metadata should possibly
* change as well.
*/
- virtual Q_REQUIRED_RESULT Result<void, QString> updateMetadata(const QString &filePath, time_t modtime, qint64 size, const QByteArray &fileId) = 0;
+ Q_REQUIRED_RESULT virtual Result<void, QString> updateMetadata(const QString &filePath, time_t modtime, qint64 size, const QByteArray &fileId) = 0;
/// Create a new dehydrated placeholder. Called from PropagateDownload.
- virtual Q_REQUIRED_RESULT Result<void, QString> createPlaceholder(const SyncFileItem &item) = 0;
+ Q_REQUIRED_RESULT virtual Result<void, QString> createPlaceholder(const SyncFileItem &item) = 0;
/** Convert a hydrated placeholder to a dehydrated one. Called from PropagateDownlaod.
*
* This is different from delete+create because preserving some file metadata
* (like pin states) may be essential for some vfs plugins.
*/
- virtual Q_REQUIRED_RESULT Result<void, QString> dehydratePlaceholder(const SyncFileItem &item) = 0;
+ Q_REQUIRED_RESULT virtual Result<void, QString> dehydratePlaceholder(const SyncFileItem &item) = 0;
/** Discovery hook: even unchanged files may need UPDATE_METADATA.
*
* For instance cfapi vfs wants local hydrated non-placeholder files to
* become hydrated placeholder files.
*/
- virtual Q_REQUIRED_RESULT bool needsMetadataUpdate(const SyncFileItem &item) = 0;
+ Q_REQUIRED_RESULT virtual bool needsMetadataUpdate(const SyncFileItem &item) = 0;
/** Convert a new file to a hydrated placeholder.
*
@@ -200,13 +200,13 @@ public:
* new placeholder shall supersede, for rename-replace actions with new downloads,
* for example.
*/
- virtual Q_REQUIRED_RESULT Result<Vfs::ConvertToPlaceholderResult, QString> convertToPlaceholder(
+ Q_REQUIRED_RESULT virtual Result<Vfs::ConvertToPlaceholderResult, QString> convertToPlaceholder(
const QString &filename,
const SyncFileItem &item,
const QString &replacesFile = QString()) = 0;
/// Determine whether the file at the given absolute path is a dehydrated placeholder.
- virtual Q_REQUIRED_RESULT bool isDehydratedPlaceholder(const QString &filePath) = 0;
+ Q_REQUIRED_RESULT virtual bool isDehydratedPlaceholder(const QString &filePath) = 0;
/** Similar to isDehydratedPlaceholder() but used from sync discovery.
*
@@ -215,7 +215,7 @@ public:
*
* Returning true means that type was fully determined.
*/
- virtual Q_REQUIRED_RESULT bool statTypeVirtualFile(csync_file_stat_t *stat, void *stat_data) = 0;
+ Q_REQUIRED_RESULT virtual bool statTypeVirtualFile(csync_file_stat_t *stat, void *stat_data) = 0;
/** Sets the pin state for the item at a path.
*
@@ -226,7 +226,7 @@ public:
*
* folderPath is relative to the sync folder. Can be "" for root folder.
*/
- virtual Q_REQUIRED_RESULT bool setPinState(const QString &folderPath, PinState state) = 0;
+ Q_REQUIRED_RESULT virtual bool setPinState(const QString &folderPath, PinState state) = 0;
/** Returns the pin state of an item at a path.
*
@@ -237,7 +237,7 @@ public:
*
* Returns none on retrieval error.
*/
- virtual Q_REQUIRED_RESULT Optional<PinState> pinState(const QString &folderPath) = 0;
+ Q_REQUIRED_RESULT virtual Optional<PinState> pinState(const QString &folderPath) = 0;
/** Returns availability status of an item at a path.
*
@@ -246,7 +246,7 @@ public:
*
* folderPath is relative to the sync folder. Can be "" for root folder.
*/
- virtual Q_REQUIRED_RESULT AvailabilityResult availability(const QString &folderPath) = 0;
+ Q_REQUIRED_RESULT virtual AvailabilityResult availability(const QString &folderPath) = 0;
public slots:
/** Update in-sync state based on SyncFileStatusTracker signal.