mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
refs #768, misc adjustments
* changed signature of ownAircraftModelChanged to model * added function for a reverse lookup of a model (string->model) and use it when model changed * renamed function to updateByLocalFileNames
This commit is contained in:
committed by
Mathew Sutcliffe
parent
501bea0960
commit
bf8198e2c2
@@ -89,6 +89,7 @@ namespace BlackCore
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::IOwnAircraftProvider::updateOwnModel
|
||||
//! \ingroup ownaircraftprovider
|
||||
//! \remark perform reverse lookup if possible
|
||||
virtual bool updateOwnModel(const BlackMisc::Simulation::CAircraftModel &model) override;
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::IOwnAircraftProvider::updateOwnSituation
|
||||
@@ -161,7 +162,10 @@ namespace BlackCore
|
||||
|
||||
//! Simulator model has been changed
|
||||
//! \note Connected in runtime
|
||||
void ps_changedSimulatorModel(const BlackMisc::Simulation::CSimulatedAircraft &ownAircraft);
|
||||
void ps_changedSimulatorModel(const BlackMisc::Simulation::CAircraftModel &model);
|
||||
|
||||
//! Web data loaded
|
||||
void ps_allSwiftWebDataRead();
|
||||
|
||||
private:
|
||||
BlackMisc::Simulation::CSimulatedAircraft m_ownAircraft; //!< my aircraft
|
||||
@@ -177,6 +181,9 @@ namespace BlackCore
|
||||
|
||||
//! Resolve voice rooms
|
||||
void resolveVoiceRooms();
|
||||
|
||||
//! Reverse lookup of the model
|
||||
static BlackMisc::Simulation::CAircraftModel reverseLookupModel(const QString &modelString);
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user