mirror of
https://github.com/UltimMC/Launcher.git
synced 2026-01-03 22:22:11 +00:00
GH-4317 Detect forced migration state and show errors for it
This commit is contained in:
23
launcher/minecraft/auth/steps/ForcedMigrationStep.h
Normal file
23
launcher/minecraft/auth/steps/ForcedMigrationStep.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
#include "QObjectPtr.h"
|
||||
#include "minecraft/auth/AuthStep.h"
|
||||
|
||||
|
||||
class ForcedMigrationStep : public AuthStep {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ForcedMigrationStep(AccountData *data);
|
||||
virtual ~ForcedMigrationStep() noexcept;
|
||||
|
||||
void perform() override;
|
||||
void rehydrate() override;
|
||||
|
||||
QString describe() override;
|
||||
|
||||
private slots:
|
||||
void onRequestDone(QNetworkReply::NetworkError, QByteArray, QList<QNetworkReply::RawHeaderPair>);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user