mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 13:17:41 +02:00
Add test authentication task.
It doesn't actually do anything with the server's reply yet.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user