#pragma once #include "settings/streamingpreferences.h" #include #include class GlobalCommandLineParser { public: enum ParseResult { NormalStartRequested, StreamRequested, QuitRequested, }; GlobalCommandLineParser(); virtual ~GlobalCommandLineParser(); ParseResult parse(const QStringList &args); }; class QuitCommandLineParser { public: QuitCommandLineParser(); virtual ~QuitCommandLineParser(); void parse(const QStringList &args); QString getHost() const; private: QString m_Host; }; 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 m_WindowModeMap; QMap m_AudioConfigMap; QMap m_VideoCodecMap; QMap m_VideoDecoderMap; QMap m_CaptureSysKeysModeMap; };