From: Claudio Cambra Date: Fri, 5 May 2023 02:34:11 +0000 (+0800) Subject: Place signals and slots for accountmanager in line with how this is done in other... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~46^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c3fda69e337e1721899b9cc73fc146de6eb674dd;p=nextcloud-desktop.git Place signals and slots for accountmanager in line with how this is done in other classes Signed-off-by: Claudio Cambra --- diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h index 2af60aa6c..a348b8df5 100644 --- a/src/gui/accountmanager.h +++ b/src/gui/accountmanager.h @@ -96,6 +96,19 @@ public: */ static void backwardMigrationSettingsKeys(QStringList *deleteKeys, QStringList *ignoreKeys); +public slots: + /// Saves account data, not including the credentials + void saveAccount(OCC::Account *a); + + /// Saves account state data, not including the account + void saveAccountState(OCC::AccountState *a); + +signals: + void accountAdded(OCC::AccountState *account); + void accountRemoved(OCC::AccountState *account); + void accountSyncConnectionRemoved(OCC::AccountState *account); + void removeAccountFolders(OCC::AccountState *account); + private: // saving and loading Account to settings void saveAccountHelper(Account *account, QSettings &settings, bool saveCredentials = true); @@ -113,19 +126,5 @@ private: QList _accounts; /// Account ids from settings that weren't read QSet _additionalBlockedAccountIds; - -public slots: - /// Saves account data, not including the credentials - void saveAccount(OCC::Account *a); - - /// Saves account state data, not including the account - void saveAccountState(OCC::AccountState *a); - - -Q_SIGNALS: - void accountAdded(OCC::AccountState *account); - void accountRemoved(OCC::AccountState *account); - void accountSyncConnectionRemoved(OCC::AccountState *account); - void removeAccountFolders(OCC::AccountState *account); }; }