1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00
astra/include/squarelauncher.h

31 lines
560 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 {
Q_OBJECT
2021-11-01 09:54:58 -04:00
public:
SquareLauncher(LauncherCore& window);
2021-11-01 09:54:58 -04:00
void gateOpen();
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);
bool isGateOpen = false;
signals:
void gateStatusRecieved(bool gateOpen);
2021-11-01 09:54:58 -04:00
private:
QString getBootHash(const LoginInformation& info);
2021-11-01 09:54:58 -04:00
QString stored, SID;
LoginAuth auth;
LauncherCore& window;
};