mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
31 lines
528 B
C
31 lines
528 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) {}
|
||
|
|
||
|
void launchGame(const ProfileSettings& settings, LoginAuth auth);
|
||
|
|
||
|
private:
|
||
|
LauncherCore& core;
|
||
|
QSystemTrayIcon* icon = nullptr;
|
||
|
|
||
|
int processWindowId = -1;
|
||
|
|
||
|
#if defined(Q_OS_LINUX)
|
||
|
GameParseResult lastResult;
|
||
|
#endif
|
||
|
|
||
|
std::unique_ptr<GameParser> parser;
|
||
|
};
|