26 lines
800 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(
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(
AccountData *data,
QString password,
QString url,
QObject *parent
): AuthFlow(data, parent), m_password(password), m_url(url) {
m_steps.append(makeShared<CustomStep>(m_data, m_password, m_url));
m_steps.append(makeShared<CustomProfileStep>(m_data));
m_steps.append(makeShared<GetSkinStep>(m_data));
}