GH-4071 Heavily refactor and rearchitect account system
This makes the account system much more modular and makes it treat errors as something recoverable, unless they come directly from the MSA refresh token becoming invalid.
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
#include <QFile>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#include <memory>
|
||||
#include <minecraft/auth/AuthSession.h>
|
||||
#include "tasks/Task.h"
|
||||
#include "QObjectPtr.h"
|
||||
|
||||
@ -11,7 +10,7 @@ class CapeChange : public Task
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CapeChange(QObject *parent, AuthSessionPtr session, QString capeId);
|
||||
CapeChange(QObject *parent, QString token, QString capeId);
|
||||
virtual ~CapeChange() {}
|
||||
|
||||
private:
|
||||
@ -20,7 +19,7 @@ private:
|
||||
|
||||
private:
|
||||
QString m_capeId;
|
||||
AuthSessionPtr m_session;
|
||||
QString m_token;
|
||||
shared_qobject_ptr<QNetworkReply> m_reply;
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user