Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2015-11-12 19:50:00 +0300
committerKlaas Freitag <freitag@owncloud.com>2015-11-12 19:50:00 +0300
commit81296fae9dfe9d142a18a6ffd96324700bb7b08f (patch)
tree4247884ca9bc4980e9a4567622075b6a62ccdf34 /src/gui/accountmanager.h
parentaa38f7a4f222dd87644f5f9deb064f51ecdc759d (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.h5
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);