mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 16:27:59 +00:00
42 lines
948 B
C
42 lines
948 B
C
|
#pragma once
|
||
|
|
||
|
#include "settings/streamingpreferences.h"
|
||
|
|
||
|
#include <QMap>
|
||
|
#include <QString>
|
||
|
|
||
|
class GlobalCommandLineParser
|
||
|
{
|
||
|
public:
|
||
|
enum ParseResult {
|
||
|
NormalStartRequested,
|
||
|
StreamRequested,
|
||
|
};
|
||
|
|
||
|
GlobalCommandLineParser();
|
||
|
virtual ~GlobalCommandLineParser();
|
||
|
|
||
|
ParseResult parse(const QStringList &args);
|
||
|
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
};
|