mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 04:37:46 +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.
36 lines
No EOL
577 B
C++
36 lines
No EOL
577 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "launchercore.h"
|
|
|
|
#if defined(Q_OS_LINUX)
|
|
#include "gameparser.h"
|
|
#endif
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
class Watchdog : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Watchdog(LauncherCore &core)
|
|
: core(core)
|
|
, QObject(&core)
|
|
{
|
|
}
|
|
|
|
void launchGame(const ProfileSettings &settings, const LoginAuth &auth);
|
|
|
|
private:
|
|
LauncherCore &core;
|
|
QSystemTrayIcon *icon = nullptr;
|
|
|
|
int processWindowId = -1;
|
|
|
|
#if defined(Q_OS_LINUX)
|
|
GameParseResult lastResult;
|
|
#endif
|
|
|
|
std::unique_ptr<GameParser> parser;
|
|
}; |