mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-24 13:27:45 +00:00

Helps you get through the queue with instant access to your place, as well as giving you notifications on lobby errors and what else. At the moment, only supported under X11 and Linux but will grow in the future assuming the queues are still terrible.
31 lines
No EOL
528 B
C++
31 lines
No EOL
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;
|
|
}; |