diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-05-12 16:16:32 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-05-12 16:16:32 +0300 |
commit | 1edd46b995239fef5963a819c0696091c0102aa8 (patch) | |
tree | 5625e0b6a6d7d8ff641a35fb9f446e95c4e06f44 /src/gui/accountmanager.h | |
parent | e02f1a222e84a87a24bb9b8564aab0407b363ac6 (diff) |
Multi-Account: add possibility to delete an account
Diffstat (limited to 'src/gui/accountmanager.h')
-rw-r--r-- | src/gui/accountmanager.h | 7 |
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); |