swift
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 
10 #include "core/swiftcoreexport.h"
11 
12 // clazy:excludeall=const-signal-or-slot
13 
14 namespace swift::core::context
15 {
18  {
19  Q_OBJECT
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 
58  const swift::misc::aviation::CAltitude &altitude,
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 
105  {
106  Q_UNUSED(pilot);
107  logEmptyContextWarning(Q_FUNC_INFO);
108  return false;
109  }
110 
113  const swift::misc::CIdentifier &originator) override
114  {
115  Q_UNUSED(selcal);
116  Q_UNUSED(originator);
117  logEmptyContextWarning(Q_FUNC_INFO);
118  return false;
119  }
120 
123  {
124  Q_UNUSED(callsign);
125  logEmptyContextWarning(Q_FUNC_INFO);
126  return false;
127  }
128 
131  const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode) override
132  {
133  Q_UNUSED(aircraftIcaoCode);
134  Q_UNUSED(airlineIcaoCode);
135  logEmptyContextWarning(Q_FUNC_INFO);
136  return false;
137  }
138 
140  void toggleTransponderMode() override { logEmptyContextWarning(Q_FUNC_INFO); }
141 
144  {
145  Q_UNUSED(mode);
146  logEmptyContextWarning(Q_FUNC_INFO);
147  return false;
148  }
149 
151  bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator) override
152  {
153  Q_UNUSED(commandLine);
154  Q_UNUSED(originator);
155  logEmptyContextWarning(Q_FUNC_INFO);
156  return false;
157  }
158  };
159 } // namespace swift::core::context
160 #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
Empty context, used during shutdown/initialization.
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 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.
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.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.