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 {
|
2021-12-02 14:17:33 -05:00
|
|
|
Q_OBJECT
|
2021-11-01 09:54:58 -04:00
|
|
|
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);
|
2021-11-01 09:54:58 -04:00
|
|
|
|
2022-03-16 14:33:04 -04:00
|
|
|
QString stored, SID, username;
|
2021-11-01 09:54:58 -04:00
|
|
|
LoginAuth auth;
|
|
|
|
|
2021-11-23 15:34:23 -05:00
|
|
|
LauncherCore& window;
|
2022-01-11 00:12:27 -05:00
|
|
|
};
|