swift
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
swift::core::context::IContextOwnAircraft Class Referenceabstract

Own context proxy. More...

Inheritance diagram for swift::core::context::IContextOwnAircraft:
[legend]

Public Slots

virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft () const =0
 Get own aircraft.
 
virtual swift::misc::aviation::CComSystem getOwnComSystem (swift::misc::aviation::CComSystem::ComUnit unit) const =0
 Get own COM system.
 
virtual swift::misc::aviation::CTransponder getOwnTransponder () const =0
 Get own transponder.
 
virtual swift::misc::aviation::CAircraftSituation getOwnAircraftSituation () const =0
 Get own aircraft.
 
virtual bool updateOwnPosition (const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)=0
 Update position. More...
 
virtual bool updateCockpit (const swift::misc::aviation::CComSystem &com1, const swift::misc::aviation::CComSystem &com2, const swift::misc::aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)=0
 Update own cockpit.
 
virtual bool updateTransponderMode (const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)=0
 Update own transponder mode.
 
virtual void toggleTransponderMode ()=0
 Toggle XPDR mode.
 
virtual bool setTransponderMode (swift::misc::aviation::CTransponder::TransponderMode mode)=0
 Set XPDR mode.
 
virtual bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0
 Tune in a COM frequency.
 
virtual bool updateOwnAircraftPilot (const swift::misc::network::CUser &pilot)=0
 Set current pilot.
 
virtual bool updateOwnIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)=0
 Set ICAO data.
 
virtual bool updateOwnCallsign (const swift::misc::aviation::CCallsign &callsign)=0
 Set callsign.
 
virtual bool updateSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0
 Own SELCAL code.
 
static const swift::misc::aviation::CAircraftSituationgetDefaultSituation ()
 Default situation. More...
 
static swift::misc::simulation::CAircraftModel getDefaultOwnAircraftModel ()
 Default own aircraft. More...
 

Signals

void changedAircraftCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 Aircraft cockpit update.
 
void changedSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Changed SELCAL code.
 
void changedCallsign (const swift::misc::aviation::CCallsign &callsign)
 Own callsign was changed.
 
void changedAircraftIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
 Own ICAO was changed.
 
void changedPilot (const swift::misc::network::CUser &pilot)
 Own pilot (aka the swift user) changed.
 
void movedAircraft (const swift::misc::physical_quantities::CLength &distance)
 Aircraft has been moved from one location to another (changed scenery)
 
- Signals inherited from swift::core::context::IContext
void changedLogOrDebugSettings ()
 Log or debug values changed.
 

Public Member Functions

virtual QString getPathAndContextId () const
 Id and path name for round trip protection. More...
 
virtual ~IContextOwnAircraft ()
 Destructor.
 
- Public Member Functions inherited from swift::core::context::IContext
 ~IContext ()=default
 Destructor.
 
bool isUsingImplementingObject () const
 Using local implementing object?
 
bool isLocalObject () const
 Local or remote object?
 
bool isEmptyObject () const
 Empty object?
 
CCoreFacadegetRuntime ()
 Runtime.
 
const CCoreFacadegetRuntime () const
 Const runtime.
 
CCoreFacadeConfig::ContextMode getMode () const
 Mode.
 
qint64 getUniqueId () const
 Unique id.
 
const IContextApplicationgetIContextApplication () const
 Context for application.
 
IContextApplicationgetIContextApplication ()
 Application.
 
IContextAudiogetIContextAudio ()
 Context for network.
 
const IContextAudiogetIContextAudio () const
 Context for network.
 
IContextNetworkgetIContextNetwork ()
 Context for network.
 
const IContextNetworkgetIContextNetwork () const
 Context for network.
 
IContextOwnAircraftgetIContextOwnAircraft ()
 Context for own aircraft.
 
const IContextOwnAircraftgetIContextOwnAircraft () const
 Context for own aircraft.
 
const IContextSimulatorgetIContextSimulator () const
 Context for simulator.
 
IContextSimulatorgetIContextSimulator ()
 Simulator.
 
void setDebugEnabled (bool debug)
 Set debug flag.
 
bool isDebugEnabled () const
 Debug enabled?
 
virtual bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)=0
 Parse a given command line.
 

Static Public Member Functions

static const QString & InterfaceName ()
 DBus interface name.
 
static const QString & ObjectPath ()
 DBus object path.
 
static IContextOwnAircraftcreate (CCoreFacade *parent, CCoreFacadeConfig::ContextMode mode, swift::misc::CDBusServer *server, QDBusConnection &connection)
 Factory method.
 
- Static Public Member Functions inherited from swift::core::context::IContext
static const QStringList & getLogCategories ()
 Log categories.
 

Protected Member Functions

 IContextOwnAircraft (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
 Constructor.
 
- Protected Member Functions inherited from swift::core::context::IContext
 IContext (CCoreFacadeConfig::ContextMode mode, QObject *parent)
 Constructor.
 
QString buildPathAndContextId (const QString &path) const
 Path and context id.
 
void relayBaseClassSignals (const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName)
 Relay signals from this class.
 
void logEmptyContextWarning (const QString &functionName) const
 Empty context called.
 
virtual void onAboutToShutdown ()
 Called when shutdown is about to be called.
 
void registerWithDBus (const QString &objectPath, misc::CDBusServer *server)
 Register myself in DBus.
 

Additional Inherited Members

- Static Protected Member Functions inherited from swift::core::context::IContext
static const misc::CStatusMessagestatusMessageEmptyContext ()
 Standard message when status message is returned in empty context.
 

Detailed Description

Own context proxy.

Definition at line 51 of file contextownaircraft.h.

Member Function Documentation

◆ getDefaultOwnAircraftModel

CAircraftModel swift::core::context::IContextOwnAircraft::getDefaultOwnAircraftModel ( )
staticslot

Default own aircraft.

Remarks
normally used when no driver is attached

Definition at line 49 of file contextownaircraft.cpp.

◆ getDefaultSituation

const CAircraftSituation & swift::core::context::IContextOwnAircraft::getDefaultSituation ( )
staticslot

Default situation.

Remarks
normally used when no driver is attached

Definition at line 41 of file contextownaircraft.cpp.

◆ getPathAndContextId()

virtual QString swift::core::context::IContextOwnAircraft::getPathAndContextId ( ) const
inlinevirtual

Id and path name for round trip protection.

Implements swift::core::context::IContext.

Definition at line 72 of file contextownaircraft.h.

◆ updateOwnPosition

virtual bool swift::core::context::IContextOwnAircraft::updateOwnPosition ( const swift::misc::geo::CCoordinateGeodetic position,
const swift::misc::aviation::CAltitude altitude,
const swift::misc::aviation::CAltitude pressureAltitude 
)
pure virtualslot

Update position.

Note
this is in
See also
IContextOwnAircraft as we want to set test positions from the GUI / elsewhere

The documentation for this class was generated from the following files: