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>2018-09-28 12:00:53 +0300
committerChristian Kamm <mail@ckamm.de>2018-11-26 14:47:31 +0300
commit96df14f897ebf4fb1f423149cba9f2972e5f280d (patch)
treec80bab947d1a774112f256c59ac52e2c94b088f4 /src/gui/folderman.h
parent12c3b9e7188f55e7e641dc2a15ca89daff46e15e (diff)
FolderMan: Remove assumption of unique running sync
Diffstat (limited to 'src/gui/folderman.h')
-rw-r--r--src/gui/folderman.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/folderman.h b/src/gui/folderman.h
index 17656846b..2c100ed49 100644
--- a/src/gui/folderman.h
+++ b/src/gui/folderman.h
@@ -182,9 +182,22 @@ public:
/**
* Access to the currently syncing folder.
+ *
+ * Note: This is only the folder that's currently syncing *as-scheduled*. There
+ * may be externally-managed syncs such as from placeholder hydrations.
+ *
+ * See also isAnySyncRunning()
*/
Folder *currentSyncFolder() const;
+ /**
+ * Returns true if any folder is currently syncing.
+ *
+ * This might be a FolderMan-scheduled sync, or a externally
+ * managed sync like a placeholder hydration.
+ */
+ bool isAnySyncRunning() const;
+
/** Removes all folders */
int unloadAndDeleteAllFolders();
@@ -206,13 +219,6 @@ public:
void setDirtyProxy();
void setDirtyNetworkLimits();
- /**
- * Terminates the current folder sync.
- *
- * It does not switch the folder to paused state.
- */
- void terminateSyncProcess();
-
signals:
/**
* signal to indicate a folder has changed its sync state.