diff options
author | Klaas Freitag <freitag@owncloud.com> | 2015-11-12 19:50:00 +0300 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2015-11-12 19:50:00 +0300 |
commit | 81296fae9dfe9d142a18a6ffd96324700bb7b08f (patch) | |
tree | 4247884ca9bc4980e9a4567622075b6a62ccdf34 /src/gui/accountmanager.h | |
parent | aa38f7a4f222dd87644f5f9deb064f51ecdc759d (diff) |
AccountManager: new method to return AccountStatePtr from the name.
It uses the Account displayName to destinguish.
Diffstat (limited to 'src/gui/accountmanager.h')
-rw-r--r-- | src/gui/accountmanager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h index eed8e43e3..296b3b33e 100644 --- a/src/gui/accountmanager.h +++ b/src/gui/accountmanager.h @@ -59,6 +59,11 @@ public: QList<AccountStatePtr> accounts() { return _accounts; } /** + * Return the account state pointer for an account identified by its display name + */ + AccountStatePtr account(const QString& name); + + /** * Delete the AccountState */ void deleteAccount(AccountState *account); |