#pragma once #include #include "launchercore.h" #if defined(Q_OS_LINUX) #include "gameparser.h" #endif #include class Watchdog : public QObject { Q_OBJECT public: Watchdog(LauncherCore& core) : core(core), QObject(&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 parser; };