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:
authorJocelyn Turcotte <jturcotte@woboq.com>2016-03-16 21:07:40 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2016-03-28 14:07:28 +0300
commitdf386b64ba88c70f13cae2514e3dacda8540fb6a (patch)
treec0d25bbdf8d1a4dc658bf4c38c47d2e46904d6fa /src/gui/accountstate.h
parent80bd86a305f594c3846822c780f28edd3c860ba2 (diff)
Make the AccountState a construction argument of the Folder
This will help moving the SyncEngine construction in the constructor and allow moving functionalities from Folder to SyncEngine or its delegated objects.
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r--src/gui/accountstate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h
index d06262a56..6ba0add89 100644
--- a/src/gui/accountstate.h
+++ b/src/gui/accountstate.h
@@ -29,11 +29,13 @@ namespace OCC {
class AccountState;
class Account;
+typedef QExplicitlySharedDataPointer<AccountState> AccountStatePtr;
+
/**
* @brief Extra info about an ownCloud server account.
* @ingroup gui
*/
-class AccountState : public QObject {
+class AccountState : public QObject, public QSharedData {
Q_OBJECT
public:
enum State {
@@ -148,6 +150,6 @@ private:
}
Q_DECLARE_METATYPE(OCC::AccountState*)
-Q_DECLARE_METATYPE(QSharedPointer<OCC::AccountState>)
+Q_DECLARE_METATYPE(OCC::AccountStatePtr)
#endif //ACCOUNTINFO_H