6 #ifndef SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_H
7 #define SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_H
29 #define SWIFT_CORE_CONTEXTOWNAIRCRAFT_INTERFACENAME "org.swift_project.swift_core.contextownaircraft"
33 #define SWIFT_CORE_CONTEXTOWNAIRCRAFT_OBJECTPATH "/ownaircraft"
35 class QDBusConnection;
41 class CAircraftIcaoCode;
47 namespace swift::core::context
72 virtual QString
getPathAndContextId()
const override {
return this->buildPathAndContextId(ObjectPath()); }
ContextMode
How to handle a given context.
The class providing facades (the contexts) for all DBus relevant operations.
Base for all context classes.
void changedAircraftCockpit(const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
Aircraft cockpit update.
virtual swift::misc::aviation::CComSystem getOwnComSystem(swift::misc::aviation::CComSystem::ComUnit unit) const =0
Get own COM system.
void changedPilot(const swift::misc::network::CUser &pilot)
Own pilot (aka the swift user) changed.
virtual bool setTransponderMode(swift::misc::aviation::CTransponder::TransponderMode mode)=0
Set XPDR mode.
virtual bool updateOwnAircraftPilot(const swift::misc::network::CUser &pilot)=0
Set current pilot.
virtual ~IContextOwnAircraft()
Destructor.
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.
virtual bool updateOwnPosition(const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)=0
Update position.
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 updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign)=0
Set callsign.
static const QString & ObjectPath()
DBus object path.
static const QString & InterfaceName()
DBus interface name.
void movedAircraft(const swift::misc::physical_quantities::CLength &distance)
Aircraft has been moved from one location to another (changed scenery)
IContextOwnAircraft(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
virtual bool updateTransponderMode(const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)=0
Update own transponder mode.
virtual bool updateSelcal(const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0
Own SELCAL code.
virtual QString getPathAndContextId() const
Id and path name for round trip protection.
virtual bool updateOwnIcaoCodes(const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)=0
Set ICAO data.
virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft() const =0
Get own aircraft.
void changedSelcal(const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
Changed SELCAL code.
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 swift::misc::aviation::CAircraftSituation getOwnAircraftSituation() const =0
Get own aircraft.
virtual void toggleTransponderMode()=0
Toggle XPDR mode.
virtual swift::misc::aviation::CTransponder getOwnTransponder() const =0
Get own transponder.
Value object encapsulating information identifying a component of a modular distributed swift process...
Value object for ICAO classification.
Value object encapsulating information of an aircraft's situation.
Value object for ICAO classification.
Altitude as used in aviation, can be AGL or MSL altitude.
Value object encapsulating information of a callsign.
TransponderMode
Transponder codes.
Value object encapsulating information of a user.
Physical unit length (length)
Aircraft model (used by another pilot, my models on disk)
Comprehensive information of an aircraft.
#define SWIFT_CORE_CONTEXTOWNAIRCRAFT_OBJECTPATH
DBus object path for context.
#define SWIFT_CORE_CONTEXTOWNAIRCRAFT_INTERFACENAME
DBus interface for context.
Free functions in swift::misc.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.