2022-04-21 21:01:55 +01:00
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "QObjectPtr.h"
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
|
|
|
|
|
|
class MinecraftProfileStepMojang : public AuthStep {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
explicit MinecraftProfileStepMojang(AccountData* data);
|
2022-04-21 21:01:55 +01:00
|
|
|
virtual ~MinecraftProfileStepMojang() noexcept;
|
|
|
|
|
|
|
|
void perform() override;
|
|
|
|
void rehydrate() override;
|
|
|
|
|
|
|
|
QString describe() override;
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
private slots:
|
2022-04-21 21:01:55 +01:00
|
|
|
void onRequestDone(QNetworkReply::NetworkError, QByteArray, QList<QNetworkReply::RawHeaderPair>);
|
|
|
|
};
|