2018-09-29 21:06:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "settings/streamingpreferences.h"
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class GlobalCommandLineParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum ParseResult {
|
|
|
|
NormalStartRequested,
|
|
|
|
StreamRequested,
|
2018-12-06 02:45:28 +00:00
|
|
|
QuitRequested,
|
2022-08-24 05:22:02 +00:00
|
|
|
PairRequested,
|
2021-03-10 16:43:30 +00:00
|
|
|
ListRequested,
|
2018-09-29 21:06:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GlobalCommandLineParser();
|
|
|
|
virtual ~GlobalCommandLineParser();
|
|
|
|
|
|
|
|
ParseResult parse(const QStringList &args);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-12-06 02:45:28 +00:00
|
|
|
class QuitCommandLineParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QuitCommandLineParser();
|
|
|
|
virtual ~QuitCommandLineParser();
|
|
|
|
|
|
|
|
void parse(const QStringList &args);
|
|
|
|
|
|
|
|
QString getHost() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_Host;
|
|
|
|
};
|
|
|
|
|
2022-08-24 05:22:02 +00:00
|
|
|
class PairCommandLineParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PairCommandLineParser();
|
|
|
|
virtual ~PairCommandLineParser();
|
|
|
|
|
|
|
|
void parse(const QStringList &args);
|
|
|
|
|
|
|
|
QString getHost() const;
|
|
|
|
QString getPredefinedPin() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_Host;
|
|
|
|
QString m_PredefinedPin;
|
|
|
|
};
|
|
|
|
|
2018-09-29 21:06:55 +00:00
|
|
|
class StreamCommandLineParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
StreamCommandLineParser();
|
|
|
|
virtual ~StreamCommandLineParser();
|
|
|
|
|
|
|
|
void parse(const QStringList &args, StreamingPreferences *preferences);
|
|
|
|
|
|
|
|
QString getHost() const;
|
|
|
|
QString getAppName() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_Host;
|
|
|
|
QString m_AppName;
|
|
|
|
QMap<QString, StreamingPreferences::WindowMode> m_WindowModeMap;
|
|
|
|
QMap<QString, StreamingPreferences::AudioConfig> m_AudioConfigMap;
|
|
|
|
QMap<QString, StreamingPreferences::VideoCodecConfig> m_VideoCodecMap;
|
|
|
|
QMap<QString, StreamingPreferences::VideoDecoderSelection> m_VideoDecoderMap;
|
2021-02-27 22:47:38 +00:00
|
|
|
QMap<QString, StreamingPreferences::CaptureSysKeysMode> m_CaptureSysKeysModeMap;
|
2018-09-29 21:06:55 +00:00
|
|
|
};
|
2021-03-10 16:43:30 +00:00
|
|
|
|
|
|
|
class ListCommandLineParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ListCommandLineParser();
|
|
|
|
virtual ~ListCommandLineParser();
|
|
|
|
|
|
|
|
void parse(const QStringList &args);
|
|
|
|
|
|
|
|
QString getHost() const;
|
2021-03-12 15:22:16 +00:00
|
|
|
bool isPrintCSV() const;
|
2021-04-04 08:43:21 +00:00
|
|
|
bool isVerbose() const;
|
2021-03-10 16:43:30 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_Host;
|
2021-03-12 15:22:16 +00:00
|
|
|
bool m_PrintCSV;
|
2021-04-04 08:43:21 +00:00
|
|
|
bool m_Verbose;
|
2021-03-10 16:43:30 +00:00
|
|
|
};
|