refs #873, allow to request aircraft parts (aircraft config) from network

This commit is contained in:
Klaus Basan
2017-02-03 03:20:12 +01:00
committed by Mathew Sutcliffe
parent 3afead9f71
commit 7eacb41113
6 changed files with 25 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ namespace BlackCore
this->m_network->presetServer(server);
// Fall back to observer mode, if no simulator is available or not simulating
if(CBuildConfig::isShippedVersion() && !this->getIContextSimulator()->isSimulatorSimulating())
if (CBuildConfig::isShippedVersion() && !this->getIContextSimulator()->isSimulatorSimulating())
{
CLogMessage(this).info("No simulator connected or connected simulator not simulating. Falling back to observer mode");
mode = INetwork::LoginAsObserver;
@@ -679,6 +679,13 @@ namespace BlackCore
return this->m_network->getInterimPositionReceivers();
}
void CContextNetwork::testRequestAircraftConfig(const CCallsign &callsign)
{
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << callsign; }
Q_ASSERT(this->m_network);
this->m_network->sendAircraftConfigQuery(callsign);
}
void CContextNetwork::testCreateDummyOnlineAtcStations(int number)
{
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << number; }