refs #603, cmd args for network vatlib

bundled all defines which should be set on the build server in defines.pri
This commit is contained in:
Klaus Basan
2016-02-29 22:43:39 +01:00
committed by Mathew Sutcliffe
parent f4cbfc2fa9
commit a43d414a76
3 changed files with 48 additions and 12 deletions

View File

@@ -23,13 +23,14 @@
#include <QTextCodec>
#include <QByteArray>
#include <QMap>
#include <QCommandLineOption>
namespace BlackCore
{
//! Implementation of INetwork using the vatlib shim
class BLACKCORE_EXPORT CNetworkVatlib :
public INetwork,
public BlackMisc::Simulation::COwnAircraftAware // network vatlib consumes own aircraft data and sets ICAO/callsign data
public INetwork,
public BlackMisc::Simulation::COwnAircraftAware // network vatlib consumes own aircraft data and sets ICAO/callsign data
{
Q_OBJECT
@@ -91,6 +92,12 @@ namespace BlackCore
virtual void sendMetarQuery(const BlackMisc::Aviation::CAirportIcaoCode &airportIcao) override;
//! @}
//! Cmd.line options this library can handle
static const QList<QCommandLineOption> &getCmdLineOptions();
//! Key if any from cmd.line arguments
QString getCmdLineFsdKey() const;
private slots:
void replyToFrequencyQuery(const BlackMisc::Aviation::CCallsign &callsign);
void replyToNameQuery(const BlackMisc::Aviation::CCallsign &callsign);
@@ -189,6 +196,6 @@ namespace BlackCore
CTokenBucket m_tokenBucket;
};
} //namespace BlackCore
} //namespace
#endif // guard