From 9cfd5ae4654a128af5c0ed26d2b1fb0d3a6d96fc Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 13 Nov 2013 16:59:50 -0600 Subject: Add test authentication task. It doesn't actually do anything with the server's reply yet. --- logic/auth/YggdrasilTask.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'logic/auth/YggdrasilTask.h') 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. */ @@ -59,6 +58,18 @@ protected: QString m_cause; }; + /** + * 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; -- cgit v1.2.3