2021-11-01 09:54:58 -04:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-23 15:34:23 -05:00
|
|
|
#include "launchercore.h"
|
2021-11-01 09:54:58 -04:00
|
|
|
|
|
|
|
class SquareLauncher : public QObject {
|
|
|
|
public:
|
2021-11-23 15:34:23 -05:00
|
|
|
SquareLauncher(LauncherCore& window);
|
2021-11-01 09:54:58 -04:00
|
|
|
|
|
|
|
void getStored(const LoginInformation& info);
|
|
|
|
|
2021-11-23 15:34:23 -05:00
|
|
|
void login(const LoginInformation& info, QUrl referer);
|
2021-11-01 09:54:58 -04:00
|
|
|
|
|
|
|
void registerSession(const LoginInformation& info);
|
|
|
|
|
|
|
|
private:
|
2021-11-23 15:34:23 -05:00
|
|
|
QString getBootHash(const LoginInformation& info);
|
|
|
|
void readExpansionVersions(const LoginInformation& info, int max);
|
2021-11-01 09:54:58 -04:00
|
|
|
|
|
|
|
QString stored, SID;
|
|
|
|
LoginAuth auth;
|
|
|
|
|
2021-11-23 15:34:23 -05:00
|
|
|
LauncherCore& window;
|
2021-11-01 09:54:58 -04:00
|
|
|
|
|
|
|
QList<QString> expansionVersions;
|
|
|
|
};
|