swift
|
Own aircraft context implementation. Central instance of data for. More...
Public Member Functions | |
virtual | ~CContextOwnAircraft () |
Destructor. | |
virtual swift::misc::aviation::CCallsign | getOwnCallsign () const |
Own aircraft's callsign. More... | |
virtual swift::misc::geo::CCoordinateGeodetic | getOwnAircraftPosition () const |
Own aircraft's position. More... | |
virtual swift::misc::aviation::CAircraftParts | getOwnAircraftParts () const |
Own aircraft's parts. More... | |
virtual swift::misc::simulation::CAircraftModel | getOwnAircraftModel () const |
Own aircraft model. More... | |
virtual swift::misc::physical_quantities::CLength | getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const |
Distance to own aircraft. More... | |
virtual bool | updateOwnModel (const swift::misc::simulation::CAircraftModel &model) |
Update model. More... | |
virtual bool | updateOwnSituation (const swift::misc::aviation::CAircraftSituation &situation) |
Update own situation. More... | |
virtual bool | updateOwnParts (const swift::misc::aviation::CAircraftParts &parts) |
Update own parts. More... | |
virtual bool | updateOwnCG (const swift::misc::physical_quantities::CLength &cg) |
Update own parts. More... | |
virtual QObject * | asQObject () |
Return as QObject. More... | |
![]() | |
virtual QString | getPathAndContextId () const |
Id and path name for round trip protection. More... | |
virtual | ~IContextOwnAircraft () |
Destructor. | |
![]() | |
~IContext ()=default | |
Destructor. | |
bool | isUsingImplementingObject () const |
Using local implementing object? | |
bool | isLocalObject () const |
Local or remote object? | |
bool | isEmptyObject () const |
Empty object? | |
CCoreFacade * | getRuntime () |
Runtime. | |
const CCoreFacade * | getRuntime () const |
Const runtime. | |
CCoreFacadeConfig::ContextMode | getMode () const |
Mode. | |
qint64 | getUniqueId () const |
Unique id. | |
const IContextApplication * | getIContextApplication () const |
Context for application. | |
IContextApplication * | getIContextApplication () |
Application. | |
IContextAudio * | getIContextAudio () |
Context for network. | |
const IContextAudio * | getIContextAudio () const |
Context for network. | |
IContextNetwork * | getIContextNetwork () |
Context for network. | |
const IContextNetwork * | getIContextNetwork () const |
Context for network. | |
IContextOwnAircraft * | getIContextOwnAircraft () |
Context for own aircraft. | |
const IContextOwnAircraft * | getIContextOwnAircraft () const |
Context for own aircraft. | |
const IContextSimulator * | getIContextSimulator () const |
Context for simulator. | |
IContextSimulator * | getIContextSimulator () |
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. | |
![]() | |
virtual CSimulatedAircraft | getOwnAircraft () const =0 |
Own aircraft. More... | |
virtual aviation::CComSystem | getOwnComSystem (aviation::CComSystem::ComUnit unit) const =0 |
Own aircraft COM unit. More... | |
virtual aviation::CTransponder | getOwnTransponder () const =0 |
Own aircraft XPDR. More... | |
virtual aviation::CAircraftSituation | getOwnAircraftSituation () const =0 |
Own aircraft's situation. More... | |
virtual bool | updateOwnCallsign (const aviation::CCallsign &callsign)=0 |
Update aircraft's callsign. More... | |
virtual bool | updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode)=0 |
Update ICAO data. More... | |
bool | updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator) |
Update cockpit, but only send signals when applicable. More... | |
virtual bool | updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)=0 |
Update cockpit, but only send signals when applicable. More... | |
virtual bool | updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0 |
Update cockpit, but only send signals when applicable. More... | |
virtual bool | updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0 |
Update cockpit, but only send signals when applicable. More... | |
![]() | |
virtual | ~IProvider () |
Dtor. | |
IProvider (const IProvider &)=delete | |
Copy constructor. | |
IProvider & | operator= (const IProvider &)=delete |
Copy assignment operator. | |
![]() | |
const CIdentifier & | identifier () const |
Get identifier. | |
void | setIdentifier (const CIdentifier &identifier) |
Set identifier, allows to set an external identifier. | |
bool | isMyIdentifier (const CIdentifier &otherIdentifier) const |
My identifier? | |
Protected Member Functions | |
CContextOwnAircraft (CCoreFacadeConfig::ContextMode, CCoreFacade *runtime) | |
Constructor, with link to runtime. | |
![]() | |
IContextOwnAircraft (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) | |
Constructor. | |
![]() | |
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. | |
![]() | |
IProvider () | |
Constructor. | |
![]() | |
CIdentifiable (const QString &objectName) | |
Use literal based object name. | |
CIdentifiable (QObject *nameProvider) | |
Connect with QObject providing the name. | |
CIdentifiable () | |
Construct without a name. | |
~CIdentifiable () | |
Destructor. | |
CIdentifiable (const CIdentifiable &)=default | |
Copy constructor. | |
CIdentifiable & | operator= (const CIdentifiable &)=default |
Copy assignment operator. | |
Friends | |
class | swift::core::CCoreFacade |
class | IContextOwnAircraft |
Additional Inherited Members | |
![]() | |
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) | |
![]() | |
void | changedLogOrDebugSettings () |
Log or debug values changed. | |
![]() | |
static const QString & | InterfaceName () |
DBus interface name. | |
static const QString & | ObjectPath () |
DBus object path. | |
static IContextOwnAircraft * | create (CCoreFacade *parent, CCoreFacadeConfig::ContextMode mode, swift::misc::CDBusServer *server, QDBusConnection &connection) |
Factory method. | |
![]() | |
static const QStringList & | getLogCategories () |
Log categories. | |
![]() | |
static const misc::CStatusMessage & | statusMessageEmptyContext () |
Standard message when status message is returned in empty context. | |
Own aircraft context implementation. Central instance of data for.
Definition at line 62 of file contextownaircraftimpl.h.
|
inlinevirtual |
Return as QObject.
Reimplemented from swift::misc::IProvider.
Definition at line 118 of file contextownaircraftimpl.h.
|
virtual |
Distance to own aircraft.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 126 of file contextownaircraftimpl.cpp.
|
virtualslot |
Get own aircraft.
Definition at line 75 of file contextownaircraftimpl.cpp.
|
virtual |
Own aircraft model.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 120 of file contextownaircraftimpl.cpp.
|
virtual |
Own aircraft's parts.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 114 of file contextownaircraftimpl.cpp.
|
virtual |
Own aircraft's position.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 102 of file contextownaircraftimpl.cpp.
|
virtualslot |
Get own aircraft.
Definition at line 108 of file contextownaircraftimpl.cpp.
|
virtual |
Own aircraft's callsign.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 96 of file contextownaircraftimpl.cpp.
|
virtualslot |
Get own COM system.
Definition at line 82 of file contextownaircraftimpl.cpp.
|
virtualslot |
Get own transponder.
Definition at line 89 of file contextownaircraftimpl.cpp.
|
virtualslot |
Set XPDR mode.
Definition at line 361 of file contextownaircraftimpl.cpp.
|
virtualslot |
Toggle XPDR mode.
Definition at line 346 of file contextownaircraftimpl.cpp.
|
virtualslot |
Tune in a COM frequency.
Definition at line 315 of file contextownaircraftimpl.cpp.
|
virtualslot |
Update own cockpit.
Definition at line 282 of file contextownaircraftimpl.cpp.
|
virtualslot |
Set current pilot.
Definition at line 335 of file contextownaircraftimpl.cpp.
|
virtualslot |
Set callsign.
Definition at line 366 of file contextownaircraftimpl.cpp.
|
virtual |
Update own parts.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 247 of file contextownaircraftimpl.cpp.
|
virtualslot |
Set ICAO data.
Definition at line 377 of file contextownaircraftimpl.cpp.
|
virtual |
Update model.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 203 of file contextownaircraftimpl.cpp.
|
virtual |
Update own parts.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 238 of file contextownaircraftimpl.cpp.
|
virtualslot |
Update position.
Definition at line 256 of file contextownaircraftimpl.cpp.
|
virtual |
Update own situation.
Implements swift::misc::simulation::IOwnAircraftProvider.
Definition at line 223 of file contextownaircraftimpl.cpp.
|
virtualslot |
Own SELCAL code.
Definition at line 388 of file contextownaircraftimpl.cpp.
|
virtualslot |
Update own transponder mode.
Definition at line 299 of file contextownaircraftimpl.cpp.