Add new command line argument 'serverType'

ServerType allows to override the ServerType at runtime

refs #872
This commit is contained in:
Roland Winklmeier
2017-01-28 00:41:04 +01:00
committed by Mathew Sutcliffe
parent c260af7b11
commit 1401b2f956
2 changed files with 28 additions and 4 deletions

View File

@@ -121,8 +121,9 @@ namespace BlackCore
//! Cmd. line options this library can handle
static const QList<QCommandLineOption> &getCmdLineOptions();
//! Client id and key if any from command line arguments
private:
bool getCmdLineClientIdAndKey(int &id, QString &key) const;
bool getCmdLineServerType(VatServerType &serverType) const;
private slots:
void replyToFrequencyQuery(const BlackMisc::Aviation::CCallsign &callsign);