mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Remove ISimulator::getSimulatorInfo()
To provide maximum flexibility, the simulator info is specified by each plugin in the JSON metadata file. * Renamed SCimulatorInfo to CSimulatorPluginInfo * Removed pre-defined simulator infos (UnspecifiedSim, FSX, etc) * CContextSimulator keeps track of which plugin is loaded and its info * QSignalMapper keeps track of which listener emitted the simulatorStared() signal * CSimulatorPluginInfo contains name, simulator name and description * TODO: GUI part * TODO: CTestFsCommon
This commit is contained in:
committed by
Roland Winklmeier
parent
3897fb2d1a
commit
63e48ae332
@@ -178,6 +178,21 @@ namespace BlackCore
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::textMessagesReceived,
|
||||
this->getCContextSimulator(), &CContextSimulator::ps_textMessagesReceived);
|
||||
Q_ASSERT(c);
|
||||
|
||||
// use readyForModelMatching instead of CAirspaceMonitor::addedAircraft, as it contains client information
|
||||
// ready for model matching is sent delayed when all information are available
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::readyForModelMatching,
|
||||
this->getCContextSimulator(), &CContextSimulator::ps_addRemoteAircraft);
|
||||
Q_ASSERT(c);
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::removedAircraft,
|
||||
this->getCContextSimulator(), &CContextSimulator::ps_removedRemoteAircraft);
|
||||
Q_ASSERT(c);
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::changedRemoteAircraftModel,
|
||||
this->getCContextSimulator(), &CContextSimulator::ps_changedRemoteAircraftModel);
|
||||
Q_ASSERT(c);
|
||||
c = connect(this->m_contextNetwork, &IContextNetwork::changedRemoteAircraftEnabled,
|
||||
this->getCContextSimulator(), &CContextSimulator::ps_changedRemoteAircraftEnabled);
|
||||
Q_ASSERT(c);
|
||||
}
|
||||
|
||||
// only if own aircraft runs locally
|
||||
|
||||
Reference in New Issue
Block a user