diff options
author | Andrew <forkk@forkk.net> | 2013-02-25 13:24:46 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-02-25 13:24:46 -0600 |
commit | 498225debdb22d83e591635dbd172cca12476279 (patch) | |
tree | e26d8f8de3bed7d22cfc25ee010c999b9481ec87 /data/loginresponse.cpp | |
parent | a7111b132873e0f1e00221b2ad734454d69889e3 (diff) | |
download | MultiMC-498225debdb22d83e591635dbd172cca12476279.tar MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.gz MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.lz MultiMC-498225debdb22d83e591635dbd172cca12476279.tar.xz MultiMC-498225debdb22d83e591635dbd172cca12476279.zip |
Rewrote the settings system. It may still need some work.
Diffstat (limited to 'data/loginresponse.cpp')
-rw-r--r-- | data/loginresponse.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/data/loginresponse.cpp b/data/loginresponse.cpp index 44bc80eb..99a618ad 100644 --- a/data/loginresponse.cpp +++ b/data/loginresponse.cpp @@ -19,51 +19,51 @@ LoginResponse::LoginResponse(const QString& username, const QString& sessionID, qint64 latestVersion, QObject *parent) : QObject(parent) { - this->username = username; - this->sessionID = sessionID; - this->latestVersion = latestVersion; + this->m_username = username; + this->m_sessionID = sessionID; + this->m_latestVersion = latestVersion; } LoginResponse::LoginResponse() { - this->username = ""; - this->sessionID = ""; - this->latestVersion = 0; + this->m_username = ""; + this->m_sessionID = ""; + this->m_latestVersion = 0; } LoginResponse::LoginResponse(const LoginResponse &other) { - this->username = other.getUsername(); - this->sessionID = other.getSessionID(); - this->latestVersion = other.getLatestVersion(); + this->m_username = other.username(); + this->m_sessionID = other.sessionID(); + this->m_latestVersion = other.latestVersion(); } -QString LoginResponse::getUsername() const +QString LoginResponse::username() const { - return username; + return m_username; } void LoginResponse::setUsername(const QString& username) { - this->username = username; + this->m_username = username; } -QString LoginResponse::getSessionID() const +QString LoginResponse::sessionID() const { - return sessionID; + return m_sessionID; } void LoginResponse::setSessionID(const QString& sessionID) { - this->sessionID = sessionID; + this->m_sessionID = sessionID; } -qint64 LoginResponse::getLatestVersion() const +qint64 LoginResponse::latestVersion() const { - return latestVersion; + return m_latestVersion; } void LoginResponse::setLatestVersion(qint64 v) { - this->latestVersion = v; + this->m_latestVersion = v; } |