Add test authentication task.

It doesn't actually do anything with the server's reply yet.
This commit is contained in:
Andrew
2013-11-13 16:59:50 -06:00
parent d84b1a91f4
commit 9cfd5ae465
5 changed files with 134 additions and 7 deletions

View File

@ -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;