2021-12-04 00:18:05 +00:00
|
|
|
#include "Mojang.h"
|
|
|
|
|
|
|
|
#include "minecraft/auth/steps/YggdrasilStep.h"
|
|
|
|
#include "minecraft/auth/steps/MinecraftProfileStep.h"
|
2022-04-22 23:31:03 +00:00
|
|
|
#include "minecraft/auth/steps/ForcedMigrationStep.h"
|
2021-12-04 00:18:05 +00:00
|
|
|
#include "minecraft/auth/steps/MigrationEligibilityStep.h"
|
|
|
|
#include "minecraft/auth/steps/GetSkinStep.h"
|
|
|
|
|
|
|
|
MojangRefresh::MojangRefresh(
|
|
|
|
AccountData *data,
|
|
|
|
QObject *parent
|
|
|
|
) : AuthFlow(data, parent) {
|
|
|
|
m_steps.append(new YggdrasilStep(m_data, QString()));
|
2022-04-22 23:31:03 +00:00
|
|
|
m_steps.append(new ForcedMigrationStep(m_data));
|
2021-12-04 00:18:05 +00:00
|
|
|
m_steps.append(new MinecraftProfileStep(m_data));
|
|
|
|
m_steps.append(new MigrationEligibilityStep(m_data));
|
|
|
|
m_steps.append(new GetSkinStep(m_data));
|
|
|
|
}
|
|
|
|
|
|
|
|
MojangLogin::MojangLogin(
|
|
|
|
AccountData *data,
|
|
|
|
QString password,
|
|
|
|
QObject *parent
|
|
|
|
): AuthFlow(data, parent), m_password(password) {
|
|
|
|
m_steps.append(new YggdrasilStep(m_data, m_password));
|
2022-04-22 23:31:03 +00:00
|
|
|
m_steps.append(new ForcedMigrationStep(m_data));
|
2021-12-04 00:18:05 +00:00
|
|
|
m_steps.append(new MinecraftProfileStep(m_data));
|
|
|
|
m_steps.append(new MigrationEligibilityStep(m_data));
|
|
|
|
m_steps.append(new GetSkinStep(m_data));
|
|
|
|
}
|