swift
Public Slots | Public Member Functions | List of all members
swift::core::context::CContextOwnAircraftEmpty Class Reference

Empty context, used during shutdown/initialization. More...

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

Public Slots

swift::misc::simulation::CSimulatedAircraft getOwnAircraft () const
 Get own aircraft. More...
 
swift::misc::aviation::CComSystem getOwnComSystem (swift::misc::aviation::CComSystem::ComUnit unit) const
 Get own COM system. More...
 
swift::misc::aviation::CTransponder getOwnTransponder () const
 Get own transponder. More...
 
swift::misc::aviation::CAircraftSituation getOwnAircraftSituation () const
 Get own aircraft. More...
 
bool updateOwnPosition (const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)
 Update position. More...
 
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)
 Update own cockpit. More...
 
bool updateTransponderMode (const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)
 Update own transponder mode. More...
 
bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Tune in a COM frequency (active) More...
 
bool updateStandbyComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Tune in a COM frequency (standby) More...
 
bool updateOwnAircraftPilot (const swift::misc::network::CUser &pilot)
 Set current pilot. More...
 
bool updateSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Own SELCAL code. More...
 
bool updateOwnCallsign (const swift::misc::aviation::CCallsign &callsign)
 Set callsign. More...
 
bool updateOwnIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
 Set ICAO data. More...
 
void toggleTransponderMode ()
 Toggle XPDR mode. More...
 
bool setTransponderMode (swift::misc::aviation::CTransponder::TransponderMode mode)
 Set XPDR mode. More...
 
bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Parse a given command line. More...
 
- Public Slots inherited from swift::core::context::IContextOwnAircraft
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 (active)
 
virtual bool updateStandbyComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0
 Tune in a COM frequency (standby)
 
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...
 

Public Member Functions

 CContextOwnAircraftEmpty (CCoreFacade *runtime)
 Constructor.
 
- Public Member Functions inherited from swift::core::context::IContextOwnAircraft
QString getPathAndContextId () const
 Id and path name for round trip protection. More...
 
 ~IContextOwnAircraft ()=default
 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.
 
- Public Member Functions inherited from QObject
QBindable< QStringbindableObjectName ()
 
 QObject (QObject *parent)
 
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUMS (...)
 
 Q_ENUM_NS (...)
 
 Q_FLAG (...)
 
 Q_FLAGS (...)
 
 Q_FLAG_NS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
bool blockSignals (bool block)
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
bool moveToThread (QThread *targetThread)
 
bool setProperty (const char *name, QVariant &&value)
 
bool setProperty (const char *name, const QVariant &value)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
void installEventFilter (QObject *filterObj)
 
void killTimer (Qt::TimerId id)
 
void killTimer (int id)
 
void objectNameChanged (const QString &objectName)
 
void removeEventFilter (QObject *obj)
 
void setObjectName (QAnyStringView name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
QList< QByteArraydynamicPropertyNames () const const
 
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
QObjectparent () const const
 
QString objectName () const const
 
QThreadthread () const const
 
QVariant property (const char *name) const const
 
findChild (QAnyStringView name, Qt::FindChildOptions options) const const
 
findChild (Qt::FindChildOptions options) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool inherits (const char *className) const const
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
virtual const QMetaObjectmetaObject () const const
 
const QObjectListchildren () const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 

Additional Inherited Members

- Public Types inherited from QObject
enum  TimerId
 
- Signals inherited from swift::core::context::IContextOwnAircraft
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.
 
- Static Public Member Functions inherited from swift::core::context::IContextOwnAircraft
static const QStringInterfaceName ()
 DBus interface name.
 
static const QStringObjectPath ()
 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 QStringListgetLogCategories ()
 Log categories.
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 
- Protected Member Functions inherited from swift::core::context::IContextOwnAircraft
 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.
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
virtual void timerEvent (QTimerEvent *event)
 
QObjectsender () const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
int senderSignalIndex () const const
 
- Static Protected Member Functions inherited from swift::core::context::IContext
static const misc::CStatusMessagestatusMessageEmptyContext ()
 Standard message when status message is returned in empty context.
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Empty context, used during shutdown/initialization.

Definition at line 17 of file contextownaircraftempty.h.

Member Function Documentation

◆ getOwnAircraft

swift::misc::simulation::CSimulatedAircraft swift::core::context::CContextOwnAircraftEmpty::getOwnAircraft ( ) const
inlineslot

Get own aircraft.

Definition at line 27 of file contextownaircraftempty.h.

◆ getOwnAircraftSituation

swift::misc::aviation::CAircraftSituation swift::core::context::CContextOwnAircraftEmpty::getOwnAircraftSituation ( ) const
inlineslot

Get own aircraft.

Definition at line 50 of file contextownaircraftempty.h.

◆ getOwnComSystem

swift::misc::aviation::CComSystem swift::core::context::CContextOwnAircraftEmpty::getOwnComSystem ( swift::misc::aviation::CComSystem::ComUnit  unit) const
inlineslot

Get own COM system.

Definition at line 35 of file contextownaircraftempty.h.

◆ getOwnTransponder

swift::misc::aviation::CTransponder swift::core::context::CContextOwnAircraftEmpty::getOwnTransponder ( ) const
inlineslot

Get own transponder.

Definition at line 43 of file contextownaircraftempty.h.

◆ parseCommandLine

bool swift::core::context::CContextOwnAircraftEmpty::parseCommandLine ( const QString commandLine,
const swift::misc::CIdentifier originator 
)
inlineslot

Parse a given command line.

Definition at line 163 of file contextownaircraftempty.h.

◆ setTransponderMode

bool swift::core::context::CContextOwnAircraftEmpty::setTransponderMode ( swift::misc::aviation::CTransponder::TransponderMode  mode)
inlineslot

Set XPDR mode.

Definition at line 155 of file contextownaircraftempty.h.

◆ toggleTransponderMode

void swift::core::context::CContextOwnAircraftEmpty::toggleTransponderMode ( )
inlineslot

Toggle XPDR mode.

Definition at line 152 of file contextownaircraftempty.h.

◆ updateActiveComFrequency

bool swift::core::context::CContextOwnAircraftEmpty::updateActiveComFrequency ( const swift::misc::physical_quantities::CFrequency frequency,
swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::CIdentifier originator 
)
inlineslot

Tune in a COM frequency (active)

Definition at line 92 of file contextownaircraftempty.h.

◆ updateCockpit

bool swift::core::context::CContextOwnAircraftEmpty::updateCockpit ( const swift::misc::aviation::CComSystem com1,
const swift::misc::aviation::CComSystem com2,
const swift::misc::aviation::CTransponder transponder,
const swift::misc::CIdentifier originator 
)
inlineslot

Update own cockpit.

Definition at line 69 of file contextownaircraftempty.h.

◆ updateOwnAircraftPilot

bool swift::core::context::CContextOwnAircraftEmpty::updateOwnAircraftPilot ( const swift::misc::network::CUser pilot)
inlineslot

Set current pilot.

Definition at line 116 of file contextownaircraftempty.h.

◆ updateOwnCallsign

bool swift::core::context::CContextOwnAircraftEmpty::updateOwnCallsign ( const swift::misc::aviation::CCallsign callsign)
inlineslot

Set callsign.

Definition at line 134 of file contextownaircraftempty.h.

◆ updateOwnIcaoCodes

bool swift::core::context::CContextOwnAircraftEmpty::updateOwnIcaoCodes ( const swift::misc::aviation::CAircraftIcaoCode aircraftIcaoCode,
const swift::misc::aviation::CAirlineIcaoCode airlineIcaoCode 
)
inlineslot

Set ICAO data.

Definition at line 142 of file contextownaircraftempty.h.

◆ updateOwnPosition

bool swift::core::context::CContextOwnAircraftEmpty::updateOwnPosition ( const swift::misc::geo::CCoordinateGeodetic position,
const swift::misc::aviation::CAltitude altitude,
const swift::misc::aviation::CAltitude pressureAltitude 
)
inlineslot

Update position.

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

Definition at line 57 of file contextownaircraftempty.h.

◆ updateSelcal

bool swift::core::context::CContextOwnAircraftEmpty::updateSelcal ( const swift::misc::aviation::CSelcal selcal,
const swift::misc::CIdentifier originator 
)
inlineslot

Own SELCAL code.

Definition at line 124 of file contextownaircraftempty.h.

◆ updateStandbyComFrequency

bool swift::core::context::CContextOwnAircraftEmpty::updateStandbyComFrequency ( const swift::misc::physical_quantities::CFrequency frequency,
swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::CIdentifier originator 
)
inlineslot

Tune in a COM frequency (standby)

Definition at line 104 of file contextownaircraftempty.h.

◆ updateTransponderMode

bool swift::core::context::CContextOwnAircraftEmpty::updateTransponderMode ( const swift::misc::aviation::CTransponder::TransponderMode transponderMode,
const swift::misc::CIdentifier originator 
)
inlineslot

Update own transponder mode.

Definition at line 82 of file contextownaircraftempty.h.


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