Implemented login system.

This commit is contained in:
Andrew
2013-02-05 19:22:19 -06:00
parent a416c58a93
commit e475f5d512
7 changed files with 142 additions and 22 deletions
+9 -1
View File
@@ -22,7 +22,9 @@ class LoginResponse : public QObject
{
Q_OBJECT
public:
explicit LoginResponse(const QString &username, const QString &sessionID, QObject *parent = 0);
explicit LoginResponse(const QString &username, const QString &sessionID,
qint64 latestVersion, QObject *parent = 0);
LoginResponse();
LoginResponse(const LoginResponse& other);
QString getUsername() const;
@@ -31,9 +33,15 @@ public:
QString getSessionID() const;
void setSessionID(const QString& sessionID);
qint64 getLatestVersion() const;
void setLatestVersion(qint64 v);
private:
QString username;
QString sessionID;
qint64 latestVersion;
};
Q_DECLARE_METATYPE(LoginResponse)
#endif // LOGINRESPONSE_H