diff options
author | Andrew <forkk@forkk.net> | 2013-11-18 12:05:35 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-11-18 12:05:35 -0600 |
commit | cdca53013990ac85967394529476712e6695bbf9 (patch) | |
tree | d251fa7f180280ea0dc2db2ce5213930caf02278 /logic/auth/MojangAccount.h | |
parent | ad8aeb0b2bdfd7586beab0be31bc36c64da31092 (diff) | |
download | MultiMC-cdca53013990ac85967394529476712e6695bbf9.tar MultiMC-cdca53013990ac85967394529476712e6695bbf9.tar.gz MultiMC-cdca53013990ac85967394529476712e6695bbf9.tar.lz MultiMC-cdca53013990ac85967394529476712e6695bbf9.tar.xz MultiMC-cdca53013990ac85967394529476712e6695bbf9.zip |
Implement account list and account list dialog
Diffstat (limited to 'logic/auth/MojangAccount.h')
-rw-r--r-- | logic/auth/MojangAccount.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/auth/MojangAccount.h b/logic/auth/MojangAccount.h index c5a26736..a38cb8f7 100644 --- a/logic/auth/MojangAccount.h +++ b/logic/auth/MojangAccount.h @@ -19,6 +19,7 @@ #include <QString> #include <QList> +#include <memory> /** * Class that represents a profile within someone's Mojang account. @@ -65,6 +66,11 @@ public: */ explicit MojangAccount(const QString& username, const QString& clientToken, const QString& accessToken, QObject* parent = 0); + /** + * Constructs a new MojangAccount matching the given account. + */ + MojangAccount(const MojangAccount& other, QObject* parent); + /** * This MojangAccount's username. May be an email address if the account is migrated. @@ -124,3 +130,6 @@ protected: ProfileList m_profiles; // List of available profiles. }; +typedef std::shared_ptr<MojangAccount> MojangAccountPtr; +Q_DECLARE_METATYPE(MojangAccountPtr) + |