1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/src/squarelauncher.h

25 lines
550 B
C
Raw Normal View History

2021-11-01 09:54:58 -04:00
#pragma once
#include "launchercore.h"
2021-11-01 09:54:58 -04:00
class SquareLauncher : public QObject {
public:
SquareLauncher(LauncherCore& window);
2021-11-01 09:54:58 -04:00
void getStored(const LoginInformation& info);
void login(const LoginInformation& info, QUrl referer);
2021-11-01 09:54:58 -04:00
void registerSession(const LoginInformation& info);
private:
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;
LauncherCore& window;
2021-11-01 09:54:58 -04:00
QList<QString> expansionVersions;
};