summaryrefslogtreecommitdiffstats
path: root/logic/auth/YggdrasilTask.h
diff options
context:
space:
mode:
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;