summaryrefslogtreecommitdiffstats
path: root/logic/net/LoginTask.h
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-17 00:46:25 +0100
committerSky <git@bunnies.cc>2013-10-17 00:46:25 +0100
commita600286e33601a85949b9e51bd5421a45f9998ac (patch)
treefb881cc10184ff15850136276706913ef352e5ad /logic/net/LoginTask.h
parentc700b7be2e6e5632f6cea6f0c45744f494a0629f (diff)
downloadMultiMC-a600286e33601a85949b9e51bd5421a45f9998ac.tar
MultiMC-a600286e33601a85949b9e51bd5421a45f9998ac.tar.gz
MultiMC-a600286e33601a85949b9e51bd5421a45f9998ac.tar.lz
MultiMC-a600286e33601a85949b9e51bd5421a45f9998ac.tar.xz
MultiMC-a600286e33601a85949b9e51bd5421a45f9998ac.zip
Use Yggdrasil error response when available, or fall back to legacy HTTP error codes
Diffstat (limited to 'logic/net/LoginTask.h')
-rw-r--r--logic/net/LoginTask.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/logic/net/LoginTask.h b/logic/net/LoginTask.h
index fa5897cb..aa925999 100644
--- a/logic/net/LoginTask.h
+++ b/logic/net/LoginTask.h
@@ -49,12 +49,14 @@ protected slots:
void legacyLogin();
void processLegacyReply(QNetworkReply *reply);
void parseLegacyReply(QByteArray data);
+ QString parseLegacyError(QNetworkReply *reply);
void yggdrasilLogin();
void processYggdrasilReply(QNetworkReply *reply);
void parseYggdrasilReply(QByteArray data);
+ QString parseYggdrasilError(QNetworkReply *reply);
- void processReply(QNetworkReply *reply, std::function<void(LoginTask*, QByteArray)>);
+ void processReply(QNetworkReply *reply, std::function<void(LoginTask*, QByteArray)>, std::function<QString(LoginTask*, QNetworkReply*)>);
protected:
void executeTask();