diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-11-22 01:04:14 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-11-22 01:04:14 +0100 |
commit | 7f5eb5d61ad5c94da5e3a0443ffbcd9088285496 (patch) | |
tree | 89e4b8db259233d3377d2f46e30244db12b09ad5 /logic/net/LoginTask.h | |
parent | 57a9dadb08a2a7ebfeba3d5f5234145b3db6c794 (diff) | |
download | MultiMC-7f5eb5d61ad5c94da5e3a0443ffbcd9088285496.tar MultiMC-7f5eb5d61ad5c94da5e3a0443ffbcd9088285496.tar.gz MultiMC-7f5eb5d61ad5c94da5e3a0443ffbcd9088285496.tar.lz MultiMC-7f5eb5d61ad5c94da5e3a0443ffbcd9088285496.tar.xz MultiMC-7f5eb5d61ad5c94da5e3a0443ffbcd9088285496.zip |
Implement user info stub for newest minecraft snapshot
Diffstat (limited to 'logic/net/LoginTask.h')
-rw-r--r-- | logic/net/LoginTask.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/logic/net/LoginTask.h b/logic/net/LoginTask.h index 26ac0808..fe4e6d2f 100644 --- a/logic/net/LoginTask.h +++ b/logic/net/LoginTask.h @@ -16,14 +16,20 @@ #pragma once #include "logic/tasks/Task.h" -#include <QSharedPointer> +#include <QMap> -struct UserInfo +struct PasswordLogin { QString username; QString password; }; +struct User +{ + QString id; + QMap<QString, QString> properties; +}; + struct LoginResponse { QString username; @@ -31,6 +37,7 @@ struct LoginResponse QString player_name; QString player_id; QString access_token; + User user; // FIXME: no idea what this really is yet. anything relevant? }; class QNetworkReply; @@ -39,7 +46,7 @@ class LoginTask : public Task { Q_OBJECT public: - explicit LoginTask(const UserInfo &uInfo, QObject *parent = 0); + explicit LoginTask(const PasswordLogin &loginInfo, QObject *parent = 0); LoginResponse getResult() { return result; @@ -65,5 +72,5 @@ protected: LoginResponse result; QNetworkReply *netReply; - UserInfo uInfo; + PasswordLogin loginInfo; }; |