Add CLI pairing support

This commit is contained in:
Cameron Gutman
2022-08-24 00:22:02 -05:00
parent 692942e5be
commit aaf59c2d01
6 changed files with 176 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ public:
NormalStartRequested,
StreamRequested,
QuitRequested,
PairRequested,
};
GlobalCommandLineParser();
@@ -35,6 +36,22 @@ private:
QString m_Host;
};
class PairCommandLineParser
{
public:
PairCommandLineParser();
virtual ~PairCommandLineParser();
void parse(const QStringList &args);
QString getHost() const;
QString getPredefinedPin() const;
private:
QString m_Host;
QString m_PredefinedPin;
};
class StreamCommandLineParser
{
public: