2021-12-04 00:18:05 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "QObjectPtr.h"
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
|
|
|
|
|
|
|
|
|
|
class MinecraftProfileStep : public AuthStep {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MinecraftProfileStep(AccountData *data);
|
|
|
|
virtual ~MinecraftProfileStep() noexcept;
|
|
|
|
|
|
|
|
void perform() override;
|
|
|
|
void rehydrate() override;
|
|
|
|
|
|
|
|
QString describe() override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void onRequestDone(QNetworkReply::NetworkError, QByteArray, QList<QNetworkReply::RawHeaderPair>);
|
2023-08-30 06:29:32 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString baseUrl;
|
2021-12-04 00:18:05 +00:00
|
|
|
};
|