aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/steps/YggdrasilStep.h
blob: ebafb8e5b1840c52c7df3caa9062258a2caf92c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <QObject>

#include "QObjectPtr.h"
#include "minecraft/auth/AuthStep.h"

class Yggdrasil;

class YggdrasilStep : public AuthStep {
    Q_OBJECT

public:
    explicit YggdrasilStep(AccountData *data, QString password);
    virtual ~YggdrasilStep() noexcept;

    void perform() override;
    void rehydrate() override;

    QString describe() override;

private slots:
    void onAuthSucceeded();
    void onAuthFailed();

private:
    Yggdrasil *m_yggdrasil = nullptr;
    QString m_password;
};