2021-12-04 00:18:05 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "QObjectPtr.h"
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
|
|
|
|
|
|
class Yggdrasil;
|
|
|
|
|
|
|
|
class YggdrasilStep : public AuthStep {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
explicit YggdrasilStep(AccountData* data, QString password);
|
2021-12-04 00:18:05 +00:00
|
|
|
virtual ~YggdrasilStep() noexcept;
|
|
|
|
|
|
|
|
void perform() override;
|
|
|
|
void rehydrate() override;
|
|
|
|
|
|
|
|
QString describe() override;
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
private slots:
|
2021-12-04 00:18:05 +00:00
|
|
|
void onAuthSucceeded();
|
|
|
|
void onAuthFailed();
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
private:
|
|
|
|
Yggdrasil* m_yggdrasil = nullptr;
|
2021-12-04 00:18:05 +00:00
|
|
|
QString m_password;
|
|
|
|
};
|