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:
authorChristian Kamm <kamm@incasoftware.de>2015-04-23 16:42:18 +0300
committerChristian Kamm <kamm@incasoftware.de>2015-04-23 17:08:20 +0300
commitf184d66ea23e5177c75c58d199893dce32c1c6a9 (patch)
treefdb7ea39af0c0480987f8e0f904d15edb863d5cb /src/gui/accountmanager.h
parent11927d625d154aec9f7f2228f61f16053631ade9 (diff)
Save and restore multiple accounts.
Diffstat (limited to 'src/gui/accountmanager.h')
-rw-r--r--src/gui/accountmanager.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/accountmanager.h b/src/gui/accountmanager.h
index 0ea336184..65a9ccc3f 100644
--- a/src/gui/accountmanager.h
+++ b/src/gui/accountmanager.h
@@ -27,12 +27,12 @@ public:
~AccountManager() {}
/**
- * Saves the account to a given settings file
+ * Saves the accounts to a given settings file
*/
void save();
/**
- * Creates an account object from from a given settings file.
+ * Creates account objects from from a given settings file.
* return true if the account was restored
*/
bool restore();
@@ -51,7 +51,9 @@ public:
QList<AccountStatePtr> accounts() { return _accounts; }
private:
- void save(const AccountPtr &account);
+ void save(const AccountPtr& account, QScopedPointer<QSettings>& settings);
+ AccountPtr load(const QScopedPointer<QSettings>& settings);
+ bool restoreFromLegacySettings();
Q_SIGNALS:
@@ -63,4 +65,4 @@ private:
QList<AccountStatePtr> _accounts;
};
-} \ No newline at end of file
+}