27 lines
524 B
C++
27 lines
524 B
C++
#pragma once
|
|
#include <QObject>
|
|
#include <memory>
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
#include "net/Download.h"
|
|
|
|
class EntitlementsStep : public AuthStep {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EntitlementsStep(AccountData* data);
|
|
virtual ~EntitlementsStep() noexcept = default;
|
|
|
|
void perform() override;
|
|
|
|
QString describe() override;
|
|
|
|
private slots:
|
|
void onRequestDone();
|
|
|
|
private:
|
|
QString m_entitlements_request_id;
|
|
std::shared_ptr<QByteArray> m_response;
|
|
Net::Download::Ptr m_task;
|
|
};
|