swift
Loading...
Searching...
No Matches
contextownaircraftempty.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_EMPTY_H
7#define SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_EMPTY_H
8
11
12// clazy:excludeall=const-signal-or-slot
13
14namespace swift::core::context
15{
18 {
20
21 public:
24
25 public slots:
28 {
29 logEmptyContextWarning(Q_FUNC_INFO);
30 return {};
31 }
32
36 {
37 Q_UNUSED((unit);)
38 logEmptyContextWarning(Q_FUNC_INFO);
39 return {};
40 }
41
44 {
45 logEmptyContextWarning(Q_FUNC_INFO);
46 return {};
47 }
48
51 {
52 logEmptyContextWarning(Q_FUNC_INFO);
53 return {};
54 }
55
59 const swift::misc::aviation::CAltitude &pressureAltitude) override
60 {
61 Q_UNUSED(position);
62 Q_UNUSED(altitude);
63 Q_UNUSED(pressureAltitude)
64 logEmptyContextWarning(Q_FUNC_INFO);
65 return false;
66 }
67
70 const swift::misc::aviation::CTransponder &transponder,
71 const swift::misc::CIdentifier &originator) override
72 {
73 Q_UNUSED(com1);
74 Q_UNUSED(com2);
75 Q_UNUSED(transponder);
76 Q_UNUSED(originator);
77 logEmptyContextWarning(Q_FUNC_INFO);
78 return false;
79 }
80
83 const swift::misc::CIdentifier &originator) override
84 {
85 Q_UNUSED(transponderMode);
86 Q_UNUSED(originator);
87 logEmptyContextWarning(Q_FUNC_INFO);
88 return false;
89 }
90
94 const swift::misc::CIdentifier &originator) override
95 {
96 Q_UNUSED(frequency);
97 Q_UNUSED(comUnit);
98 Q_UNUSED(originator);
99 logEmptyContextWarning(Q_FUNC_INFO);
100 return false;
101 }
102
106 const swift::misc::CIdentifier &originator) override
107 {
108 Q_UNUSED(frequency);
109 Q_UNUSED(comUnit);
110 Q_UNUSED(originator);
111 logEmptyContextWarning(Q_FUNC_INFO);
112 return false;
113 }
114
117 {
118 Q_UNUSED(pilot);
119 logEmptyContextWarning(Q_FUNC_INFO);
120 return false;
121 }
122
125 const swift::misc::CIdentifier &originator) override
126 {
127 Q_UNUSED(selcal);
128 Q_UNUSED(originator);
129 logEmptyContextWarning(Q_FUNC_INFO);
130 return false;
131 }
132
135 {
136 Q_UNUSED(callsign);
137 logEmptyContextWarning(Q_FUNC_INFO);
138 return false;
139 }
140
143 const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode) override
144 {
145 Q_UNUSED(aircraftIcaoCode);
146 Q_UNUSED(airlineIcaoCode);
147 logEmptyContextWarning(Q_FUNC_INFO);
148 return false;
149 }
150
152 void toggleTransponderMode() override { logEmptyContextWarning(Q_FUNC_INFO); }
153
156 {
157 Q_UNUSED(mode);
158 logEmptyContextWarning(Q_FUNC_INFO);
159 return false;
160 }
161
163 bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator) override
164 {
165 Q_UNUSED(commandLine);
166 Q_UNUSED(originator);
167 logEmptyContextWarning(Q_FUNC_INFO);
168 return false;
169 }
170 };
171} // namespace swift::core::context
172#endif // SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_EMPTY_H
Configuration object for the contexts.
The class providing facades (the contexts) for all DBus relevant operations.
Definition corefacade.h:57
bool updateTransponderMode(const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)
Update own transponder mode.
swift::misc::aviation::CTransponder getOwnTransponder() const
Get own transponder.
swift::misc::aviation::CComSystem getOwnComSystem(swift::misc::aviation::CComSystem::ComUnit unit) const
Get own COM system.
bool updateSelcal(const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
Own SELCAL code.
bool updateOwnIcaoCodes(const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
Set ICAO data.
bool updateOwnAircraftPilot(const swift::misc::network::CUser &pilot)
Set current pilot.
bool updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign)
Set callsign.
bool updateOwnPosition(const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)
Update position.
swift::misc::simulation::CSimulatedAircraft getOwnAircraft() const
Get own aircraft.
swift::misc::aviation::CAircraftSituation getOwnAircraftSituation() const
Get own aircraft.
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.
CContextOwnAircraftEmpty(CCoreFacade *runtime)
Constructor.
bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator)
Parse a given command line.
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).
bool setTransponderMode(swift::misc::aviation::CTransponder::TransponderMode mode)
Set XPDR mode.
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).
void logEmptyContextWarning(const QString &functionName) const
Empty context called.
Definition context.h:145
IContextOwnAircraft(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
Value object encapsulating information identifying a component of a modular distributed swift process...
Definition identifier.h:29
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.
Definition altitude.h:52
Value object encapsulating information of a callsign.
Definition callsign.h:30
COM system (aka "radio").
Definition comsystem.h:37
Value object for SELCAL.
Definition selcal.h:31
Value object encapsulating information of a user.
Definition user.h:28
Comprehensive information of an aircraft.
Q_OBJECTQ_OBJECT
#define SWIFT_CORE_EXPORT
Export a class or function from the library.