summaryrefslogtreecommitdiffstats
path: root/logic/auth/YggdrasilTask.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-11-13 16:59:50 -0600
committerAndrew <forkk@forkk.net>2013-11-14 12:17:38 -0600
commit9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc (patch)
treec226b1b0c8f453deccb540bf9b541faa9e8f0359 /logic/auth/YggdrasilTask.h
parentd84b1a91f494eff3c96cd961ceba9690f31e741e (diff)
downloadMultiMC-9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc.tar
MultiMC-9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc.tar.gz
MultiMC-9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc.tar.lz
MultiMC-9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc.tar.xz
MultiMC-9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc.zip
Add test authentication task.
It doesn't actually do anything with the server's reply yet.
Diffstat (limited to 'logic/auth/YggdrasilTask.h')
-rw-r--r--logic/auth/YggdrasilTask.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/logic/auth/YggdrasilTask.h b/logic/auth/YggdrasilTask.h
index 05018213..57bbede9 100644
--- a/logic/auth/YggdrasilTask.h
+++ b/logic/auth/YggdrasilTask.h
@@ -36,7 +36,6 @@ public:
explicit YggdrasilTask(MojangAccount* account, QObject* parent=0);
~YggdrasilTask();
-protected:
/**
* Class describing a Yggdrasil error response.
*/
@@ -60,6 +59,18 @@ protected:
};
/**
+ * Gets the Mojang account that this task is operating on.
+ */
+ virtual MojangAccount* getMojangAccount() const;
+
+ /**
+ * Returns a pointer to a YggdrasilTask::Error object if an error has occurred.
+ * If no error has occurred, returns a null pointer.
+ */
+ virtual Error* getError() const;
+
+protected:
+ /**
* Enum for describing the state of the current task.
* Used by the getStateMessage function to determine what the status message should be.
*/
@@ -106,12 +117,6 @@ protected:
*/
virtual QString getStateMessage(const State state);
- /**
- * Returns a pointer to a YggdrasilTask::Error object if an error has occurred.
- * If no error has occurred, returns a null pointer.
- */
- virtual Error* getError() const;
-
MojangAccount* m_account;
QNetworkReply* m_netReply;