Implement account list and account list dialog
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user