Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
29 lines
575 B
C++
Executable File
29 lines
575 B
C++
Executable File
#pragma once
|
|
#include <QObject>
|
|
#include <memory>
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
#include "net/Download.h"
|
|
#include "net/NetJob.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_request;
|
|
NetJob::Ptr m_task;
|
|
};
|