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 <kamm@incasoftware.de>2015-07-01 12:39:57 +0300
committerChristian Kamm <kamm@incasoftware.de>2015-07-01 15:53:07 +0300
commit2fa00168cf05a6f1783b41c3b107d23139eaaf72 (patch)
treee2026db87c1f6265509ff18d6cbe5460a89c2474 /src/gui/folderman.h
parenta61a780c2a5b396c1105da0d4e7582efaf675c57 (diff)
Sync scheduling: fix per-account scheduling. #3379
application.cpp still had a global folder syncing on/off switch when an account connected or disconnected. That couldn't work with multiaccount. Instead FolderMan listens to accountStateChanged messages and schedules or de-schedules the folders for accounts that change state.
Diffstat (limited to 'src/gui/folderman.h')
-rw-r--r--src/gui/folderman.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/folderman.h b/src/gui/folderman.h
index 3862e082f..e834427e7 100644
--- a/src/gui/folderman.h
+++ b/src/gui/folderman.h
@@ -131,6 +131,12 @@ public slots:
void slotEtagJobDestroyed (QObject*);
void slotRunOneEtagJob();
+ /**
+ * Schedules folders of newly connected accounts, terminates and
+ * de-schedules folders of disconnected accounts.
+ */
+ void slotAccountStateChanged();
+
private slots:
// slot to take the next folder from queue and start syncing.