diff options
author | Andrew <forkk@forkk.net> | 2013-02-05 19:22:19 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-02-05 19:22:19 -0600 |
commit | e475f5d51251ae57da0480bbadc9cb32a8bc72b2 (patch) | |
tree | a0a13ee373bce0130677b788db3af12c55d1f663 /data/loginresponse.cpp | |
parent | a416c58a93dd9d108f4c4fa968b9431e30834c5c (diff) | |
download | MultiMC-e475f5d51251ae57da0480bbadc9cb32a8bc72b2.tar MultiMC-e475f5d51251ae57da0480bbadc9cb32a8bc72b2.tar.gz MultiMC-e475f5d51251ae57da0480bbadc9cb32a8bc72b2.tar.lz MultiMC-e475f5d51251ae57da0480bbadc9cb32a8bc72b2.tar.xz MultiMC-e475f5d51251ae57da0480bbadc9cb32a8bc72b2.zip |
Implemented login system.
Diffstat (limited to 'data/loginresponse.cpp')
-rw-r--r-- | data/loginresponse.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/data/loginresponse.cpp b/data/loginresponse.cpp index a3647114..44bc80eb 100644 --- a/data/loginresponse.cpp +++ b/data/loginresponse.cpp @@ -15,17 +15,27 @@ #include "loginresponse.h" -LoginResponse::LoginResponse(const QString& username, const QString& sessionID, QObject *parent) : +LoginResponse::LoginResponse(const QString& username, const QString& sessionID, + qint64 latestVersion, QObject *parent) : QObject(parent) { this->username = username; this->sessionID = sessionID; + this->latestVersion = latestVersion; +} + +LoginResponse::LoginResponse() +{ + this->username = ""; + this->sessionID = ""; + this->latestVersion = 0; } LoginResponse::LoginResponse(const LoginResponse &other) { - this->username = other.username; - this->sessionID = other.sessionID; + this->username = other.getUsername(); + this->sessionID = other.getSessionID(); + this->latestVersion = other.getLatestVersion(); } QString LoginResponse::getUsername() const @@ -47,3 +57,13 @@ void LoginResponse::setSessionID(const QString& sessionID) { this->sessionID = sessionID; } + +qint64 LoginResponse::getLatestVersion() const +{ + return latestVersion; +} + +void LoginResponse::setLatestVersion(qint64 v) +{ + this->latestVersion = v; +} |