mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
Giant commit overhauling the interface to use KDE's Kirigami framework, which is based on Qt Quick. The logic is all but rewritten, allowing accounts to be separate from profiles.
27 lines
561 B
C++
27 lines
561 B
C++
#pragma once
|
|
|
|
#include "launchercore.h"
|
|
#include "patcher.h"
|
|
|
|
class SquareLauncher : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SquareLauncher(LauncherCore &window, QObject *parent = nullptr);
|
|
|
|
void getStored(const LoginInformation &info);
|
|
|
|
void login(const LoginInformation &info, const QUrl &referer);
|
|
|
|
void registerSession(const LoginInformation &info);
|
|
|
|
private:
|
|
QString getBootHash(const LoginInformation &info);
|
|
|
|
Patcher *patcher = nullptr;
|
|
|
|
QString stored, SID, username;
|
|
LoginAuth auth;
|
|
|
|
LauncherCore &window;
|
|
};
|