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:
authorOlivier Goffart <ogoffart@woboq.com>2015-05-12 16:16:32 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-05-12 16:16:32 +0300
commit1edd46b995239fef5963a819c0696091c0102aa8 (patch)
tree5625e0b6a6d7d8ff641a35fb9f446e95c4e06f44 /src/gui/accountmanager.h
parente02f1a222e84a87a24bb9b8564aab0407b363ac6 (diff)
Multi-Account: add possibility to delete an account
Diffstat (limited to 'src/gui/accountmanager.h')
-rw-r--r--src/gui/accountmanager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h
index 6cf4434f4..f8a3ce937 100644
--- a/src/gui/accountmanager.h
+++ b/src/gui/accountmanager.h
@@ -50,9 +50,16 @@ public:
/**
* Return a list of all accounts.
+ * (this is a list of QSharedPointer for internal reason, one should normaly not keep a copy of them)
*/
QList<AccountStatePtr> accounts() { return _accounts; }
+ /**
+ * Delete the AccountState
+ */
+ void deleteAccount(AccountState *account);
+
+
private:
void save(const AccountPtr& account, QSettings& settings);
AccountPtr load(QSettings& settings);