summaryrefslogtreecommitdiffstats
path: root/logic/auth/MojangAccount.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-11-18 12:05:35 -0600
committerAndrew <forkk@forkk.net>2013-11-18 12:05:35 -0600
commitcdca53013990ac85967394529476712e6695bbf9 (patch)
treed251fa7f180280ea0dc2db2ce5213930caf02278 /logic/auth/MojangAccount.cpp
parentad8aeb0b2bdfd7586beab0be31bc36c64da31092 (diff)
downloadMultiMC-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.cpp')
-rw-r--r--logic/auth/MojangAccount.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/logic/auth/MojangAccount.cpp b/logic/auth/MojangAccount.cpp
index 8856047e..936046fb 100644
--- a/logic/auth/MojangAccount.cpp
+++ b/logic/auth/MojangAccount.cpp
@@ -41,6 +41,16 @@ MojangAccount::MojangAccount(const QString& username, const QString& clientToken
m_currentProfile = -1;
}
+MojangAccount::MojangAccount(const MojangAccount& other, QObject* parent)
+{
+ m_username = other.username();
+ m_clientToken = other.clientToken();
+ m_accessToken = other.accessToken();
+
+ m_profiles = other.m_profiles;
+ m_currentProfile = other.m_currentProfile;
+}
+
QString MojangAccount::username() const
{