mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
refs #791, adjusted own aircraft context
* function for default model and situation in context (so they can be reused as in login component) * use CDatabaseUtils::consolidateOwnAircraftModelWithDbData for lookup
This commit is contained in:
@@ -99,7 +99,7 @@ namespace BlackCore
|
||||
//! Own ICAO was changed
|
||||
void changedAircraftIcaoCodes(const BlackMisc::Aviation::CAircraftIcaoCode &aircraftIcaoCode, const BlackMisc::Aviation::CAirlineIcaoCode &airlineIcaoCode);
|
||||
|
||||
//! own pilot (aka the swift user) changed
|
||||
//! Own pilot (aka the swift user) changed
|
||||
void changedPilot(const BlackMisc::Network::CUser &pilot);
|
||||
|
||||
public slots:
|
||||
@@ -142,6 +142,14 @@ namespace BlackCore
|
||||
//! Parse command line
|
||||
virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) = 0;
|
||||
|
||||
//! Default situation
|
||||
//! \remark normally used when no driver is attached
|
||||
static const BlackMisc::Aviation::CAircraftSituation &getDefaultSituation();
|
||||
|
||||
//! Default own aircraft
|
||||
//! \remark normally used when no driver is attached
|
||||
static BlackMisc::Simulation::CAircraftModel getDefaultOwnAircraftModel();
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
IContextOwnAircraft(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) : CContext(mode, runtime) {}
|
||||
|
||||
Reference in New Issue
Block a user