Based on slack discussion, pass arguments from launcher to started application

https://swift-project.slack.com/archives/C04J6J76N/p1504449711000040

* utility functions in CApplication and CNetworkVatlib for cmd args
* a.addVatlibOptions() in launcher
* function CSwiftLauncher::startDetached to unify startup and simplify debugging
This commit is contained in:
Klaus Basan
2017-09-04 20:06:04 +02:00
committed by Mathew Sutcliffe
parent 1baf74ebf3
commit eab22e86b0
7 changed files with 54 additions and 26 deletions

View File

@@ -115,6 +115,9 @@ namespace BlackCore
virtual const BlackMisc::Aviation::CCallsignSet &getInterimPositionReceivers() const override;
//! @}
//! Arguments to be passed to another swift appplication
static QStringList inheritedArguments();
//! \name Weather functions
//! @{
virtual void sendMetarQuery(const BlackMisc::Aviation::CAirportIcaoCode &airportIcao) override;
@@ -127,7 +130,7 @@ namespace BlackCore
static int const c_interimPositionTimeOffsetMsec = 2000; //!< offset time for received interim position updates
private:
bool getCmdLineClientIdAndKey(int &id, QString &key) const;
static bool getCmdLineClientIdAndKey(int &id, QString &key);
void replyToFrequencyQuery(const BlackMisc::Aviation::CCallsign &callsign);
void replyToNameQuery(const BlackMisc::Aviation::CCallsign &callsign);