28 lines
927 B
C++
28 lines
927 B
C++
#include "Mojang.h"
|
|
|
|
#include "minecraft/auth/steps/YggdrasilStep.h"
|
|
#include "minecraft/auth/steps/MinecraftProfileStepMojang.h"
|
|
#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()));
|
|
m_steps.append(new MinecraftProfileStepMojang(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));
|
|
m_steps.append(new MinecraftProfileStepMojang(m_data));
|
|
m_steps.append(new MigrationEligibilityStep(m_data));
|
|
m_steps.append(new GetSkinStep(m_data));
|
|
}
|