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);
31  }
32 
36  {
37  Q_UNUSED((unit);)
38  logEmptyContextWarning(Q_FUNC_INFO);
40  }
41 
44  {
45  logEmptyContextWarning(Q_FUNC_INFO);
47  }
48 
51  {
52  logEmptyContextWarning(Q_FUNC_INFO);
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 
71  const swift::misc::aviation::CTransponder &transponder,
72  const swift::misc::CIdentifier &originator) override
73  {
74  Q_UNUSED(com1);
75  Q_UNUSED(com2);
76  Q_UNUSED(transponder);
77  Q_UNUSED(originator);
78  logEmptyContextWarning(Q_FUNC_INFO);
79  return false;
80  }
81 
84  const swift::misc::CIdentifier &originator) override
85  {
86  Q_UNUSED(transponderMode);
87  Q_UNUSED(originator);
88  logEmptyContextWarning(Q_FUNC_INFO);
89  return false;
90  }
91 
95  const swift::misc::CIdentifier &originator) override
96  {
97  Q_UNUSED(frequency);
98  Q_UNUSED(comUnit);
99  Q_UNUSED(originator);
100  logEmptyContextWarning(Q_FUNC_INFO);
101  return false;
102  }
103 
105  virtual bool updateOwnAircraftPilot(const swift::misc::network::CUser &pilot) override
106  {
107  Q_UNUSED(pilot);
108  logEmptyContextWarning(Q_FUNC_INFO);
109  return false;
110  }
111 
113  virtual bool updateSelcal(const swift::misc::aviation::CSelcal &selcal,
114  const swift::misc::CIdentifier &originator) override
115  {
116  Q_UNUSED(selcal);
117  Q_UNUSED(originator);
118  logEmptyContextWarning(Q_FUNC_INFO);
119  return false;
120  }
121 
123  virtual bool updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign) override
124  {
125  Q_UNUSED(callsign);
126  logEmptyContextWarning(Q_FUNC_INFO);
127  return false;
128  }
129 
131  virtual bool updateOwnIcaoCodes(const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode,
132  const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode) override
133  {
134  Q_UNUSED(aircraftIcaoCode);
135  Q_UNUSED(airlineIcaoCode);
136  logEmptyContextWarning(Q_FUNC_INFO);
137  return false;
138  }
139 
141  virtual void toggleTransponderMode() override { logEmptyContextWarning(Q_FUNC_INFO); }
142 
145  {
146  Q_UNUSED(mode);
147  logEmptyContextWarning(Q_FUNC_INFO);
148  return false;
149  }
150 
152  virtual bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator) override
153  {
154  Q_UNUSED(commandLine);
155  Q_UNUSED(originator);
156  logEmptyContextWarning(Q_FUNC_INFO);
157  return false;
158  }
159  };
160 } // namespace swift::core::context
161 #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.
virtual bool updateOwnPosition(const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)
Update position.
virtual bool setTransponderMode(swift::misc::aviation::CTransponder::TransponderMode mode)
Set XPDR mode.
virtual bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator)
Parse a given command line.
virtual swift::misc::aviation::CComSystem getOwnComSystem(swift::misc::aviation::CComSystem::ComUnit unit) const
Get own COM system.
virtual bool updateSelcal(const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
Own SELCAL code.
virtual bool updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign)
Set callsign.
virtual bool updateTransponderMode(const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)
Update own transponder mode.
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)
Update own cockpit.
virtual swift::misc::aviation::CAircraftSituation getOwnAircraftSituation() const
Get own aircraft.
virtual swift::misc::aviation::CTransponder getOwnTransponder() const
Get own transponder.
CContextOwnAircraftEmpty(CCoreFacade *runtime)
Constructor.
virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft() const
Get own aircraft.
virtual bool updateOwnAircraftPilot(const swift::misc::network::CUser &pilot)
Set current pilot.
virtual bool updateOwnIcaoCodes(const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
Set ICAO data.
virtual 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.