refs #246 added ISimulator::aircraftModelChanged signal which can be sent via the contexts to CAirspaceMonitor, which needs the model when sending FSIPI(R) custom packets

This commit is contained in:
Mathew Sutcliffe
2014-06-13 11:46:40 +01:00
parent 2e23f2fd8d
commit a6cd44be8d
9 changed files with 27 additions and 16 deletions

View File

@@ -178,6 +178,15 @@ namespace BlackSimPlugin
return this->m_simulatorInfo;
}
void CSimulatorFsx::setAircraftModel(const BlackMisc::Network::CAircraftModel &model)
{
if (m_aircraftModel != model)
{
m_aircraftModel = model;
emit aircraftModelChanged(model);
}
}
bool CSimulatorFsx::updateOwnSimulatorCockpit(const CAircraft &ownAircraft)
{
CComSystem newCom1 = ownAircraft.getCom1System();

View File

@@ -144,7 +144,7 @@ namespace BlackSimPlugin
void onSimExit();
//! \private
void setAircraftModel(const BlackMisc::Network::CAircraftModel &model) { m_aircraftModel = model; }
void setAircraftModel(const BlackMisc::Network::CAircraftModel &model);
protected:
//! Timer event