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"
|
|
|
|
|
2023-06-20 15:08:02 -04:00
|
|
|
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));
|
|
|
|
}
|
|
|
|
|
2023-06-20 15:08:02 -04:00
|
|
|
CustomLogin::CustomLogin(
|
2023-06-20 14:35:02 -04:00
|
|
|
AccountData *data,
|
|
|
|
QString password,
|
|
|
|
QString url,
|
|
|
|
QObject *parent
|
2023-06-20 15:08:02 -04:00
|
|
|
): 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));
|
|
|
|
}
|