mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T701, IAircraftModelSetProvider 1st version
* added to matcher * and simulator context * in facade changed init order, as we need getCContextOwnAircraft() / getCContextSimulator() Remark: Need 2 contexts is not ideal, but accepted for the moment
This commit is contained in:
committed by
Mat Sutcliffe
parent
9ac457edb3
commit
0767deb41d
@@ -61,6 +61,7 @@ namespace BlackCore
|
||||
CContextNetwork::CContextNetwork(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) :
|
||||
IContextNetwork(mode, runtime)
|
||||
{
|
||||
//! \fixme KB 2019-07 bad style we implicitly depend on 2 other contexts
|
||||
Q_ASSERT(this->getRuntime());
|
||||
Q_ASSERT(this->getIContextOwnAircraft());
|
||||
Q_ASSERT(this->getIContextOwnAircraft()->isUsingImplementingObject());
|
||||
@@ -85,7 +86,11 @@ namespace BlackCore
|
||||
|
||||
// 3. Airspace contents
|
||||
Q_ASSERT_X(this->getRuntime()->getCContextOwnAircraft(), Q_FUNC_INFO, "this and own aircraft context must be local");
|
||||
m_airspace = new CAirspaceMonitor(this->getRuntime()->getCContextOwnAircraft(), m_network, this);
|
||||
Q_ASSERT_X(this->getRuntime()->getCContextSimulator(), Q_FUNC_INFO, "this and own simulator context must be local");
|
||||
m_airspace = new CAirspaceMonitor(
|
||||
this->getRuntime()->getCContextOwnAircraft(),
|
||||
this->getRuntime()->getCContextSimulator(),
|
||||
m_network, this);
|
||||
m_network->setClientProvider(m_airspace);
|
||||
connect(m_airspace, &CAirspaceMonitor::changedAtcStationsOnline, this, &CContextNetwork::changedAtcStationsOnline, Qt::QueuedConnection);
|
||||
connect(m_airspace, &CAirspaceMonitor::changedAtcStationsBooked, this, &CContextNetwork::changedAtcStationsBooked, Qt::QueuedConnection);
|
||||
|
||||
Reference in New Issue
Block a user