mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
39 lines
738 B
C++
39 lines
738 B
C++
#pragma once
|
|
|
|
#include "commandlineparser.h"
|
|
|
|
#include <QObject>
|
|
#include <QVariant>
|
|
|
|
class ComputerManager;
|
|
class NvComputer;
|
|
|
|
namespace CliListApps
|
|
{
|
|
|
|
class LauncherPrivate;
|
|
|
|
class Launcher : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_DECLARE_PRIVATE_D(m_DPtr, Launcher)
|
|
|
|
public:
|
|
explicit Launcher(QString computer, ListCommandLineParser arguments, QObject *parent = nullptr);
|
|
~Launcher();
|
|
|
|
Q_INVOKABLE void execute(ComputerManager *manager);
|
|
Q_INVOKABLE bool isExecuted() const;
|
|
|
|
private slots:
|
|
void onComputerFound(NvComputer *computer);
|
|
void onComputerUpdated(NvComputer *computer);
|
|
void onComputerSeekTimeout();
|
|
|
|
private:
|
|
QScopedPointer<LauncherPrivate> m_DPtr;
|
|
ListCommandLineParser m_Arguments;
|
|
};
|
|
|
|
}
|