1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00
astra/launcher/core/include/watchdog.h

31 lines
555 B
C
Raw Normal View History

#pragma once
#include <memory>
#include "launchercore.h"
#if defined(Q_OS_LINUX)
2022-08-15 11:14:37 -04:00
#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;
};