From: Claudio Cambra Date: Fri, 5 May 2023 02:36:43 +0000 (+0800) Subject: Declare void setters and methods in accountmanager as slots X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~46^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=efce1b6abf15bc8db1a5b855e4c5a0e5713bda54;p=nextcloud-desktop.git Declare void setters and methods in accountmanager as slots Signed-off-by: Claudio Cambra --- diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h index a348b8df5..8f853df89 100644 --- a/src/gui/accountmanager.h +++ b/src/gui/accountmanager.h @@ -38,11 +38,6 @@ public: static AccountManager *instance(); ~AccountManager() override = default; - /** - * Saves the accounts to a given settings file - */ - void save(bool saveCredentials = true); - /** * Creates account objects from a given settings file. * @@ -57,11 +52,6 @@ public: */ AccountState *addAccount(const AccountPtr &newAccount); - /** - * remove all accounts - */ - void shutdown(); - /** * Return a list of all accounts. * (this is a list of QSharedPointer for internal reasons, one should normally not keep a copy of them) @@ -79,11 +69,6 @@ public: [[nodiscard]] AccountStatePtr accountFromUserId(const QString &id) const; - /** - * Delete the AccountState - */ - void deleteAccount(AccountState *account); - /** * Creates an account and sets up some basic handlers. * Does *not* add the account to the account manager just yet. @@ -103,6 +88,15 @@ public slots: /// Saves account state data, not including the account void saveAccountState(OCC::AccountState *a); + /// Saves the accounts to a given settings file + void save(bool saveCredentials = true); + + /// Delete the AccountState + void deleteAccount(AccountState *account); + + /// Remove all accounts + void shutdown(); + signals: void accountAdded(OCC::AccountState *account); void accountRemoved(OCC::AccountState *account);