28 lines
832 B
C++
Raw Normal View History

2023-06-20 14:35:02 -04:00
#include "Custom.h"
#include "minecraft/auth/steps/CustomStep.h"
#include "minecraft/auth/steps/CustomProfileStep.h"
#include "minecraft/auth/steps/GetSkinStep.h"
CustomRefresh::CustomRefresh(
2023-06-20 14:35:02 -04:00
AccountData *data,
QObject *parent
) : AuthFlow(data, parent) {
m_steps.append(makeShared<CustomStep>(m_data, QString()));
m_steps.append(makeShared<CustomProfileStep>(m_data));
m_steps.append(makeShared<GetSkinStep>(m_data));
}
CustomLogin::CustomLogin(
2023-06-20 14:35:02 -04:00
AccountData *data,
QString password,
QString url,
QObject *parent
): AuthFlow(data, parent), m_password(password) {
auto step = makeShared<CustomStep>(m_data, m_password);
step.get()->setUrl(url);
m_steps.append(step);
2023-06-20 14:35:02 -04:00
m_steps.append(makeShared<CustomProfileStep>(m_data));
m_steps.append(makeShared<GetSkinStep>(m_data));
}