diff options
author | Christian Kamm <kamm@incasoftware.de> | 2015-07-01 12:39:57 +0300 |
---|---|---|
committer | Christian Kamm <kamm@incasoftware.de> | 2015-07-01 15:53:07 +0300 |
commit | 2fa00168cf05a6f1783b41c3b107d23139eaaf72 (patch) | |
tree | e2026db87c1f6265509ff18d6cbe5460a89c2474 /src/gui/folderman.h | |
parent | a61a780c2a5b396c1105da0d4e7582efaf675c57 (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.h | 6 |
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. |