6 #ifndef SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_IMPL_H
7 #define SWIFT_CORE_CONTEXT_CONTEXTOWNAIRCRAFT_IMPL_H
12 #include <QReadWriteLock>
48 class CAircraftIcaoCode;
49 class CAircraftSituation;
183 virtual void toggleTransponderMode()
override;
196 virtual bool parseCommandLine(
const QString &commandLine,
220 mutable QReadWriteLock m_lockAircraft;
222 CActionBind m_actionToggleXpdr { swift::misc::input::toggleXPDRStateHotkeyAction(),
223 swift::misc::input::toggleXPDRStateHotkeyIcon(),
this,
224 &CContextOwnAircraft::actionToggleTransponder };
225 CActionBind m_actionIdent { swift::misc::input::toggleXPDRIdentHotkeyAction(),
226 swift::misc::input::toggleXPDRIdentHotkeyIcon(),
this,
227 &CContextOwnAircraft::actionIdent };
229 static constexpr qint64 MinHistoryDeltaMs = 1000;
230 static constexpr
int MaxHistoryElements = 20;
231 QTimer m_historyTimer;
232 std::atomic_bool m_history {
true };
246 void xCtxChangedSimulatorStatus(
int status);
250 void actionToggleTransponder(
bool keydown);
251 void actionIdent(
bool keydown);
255 void allSwiftWebDataRead();
258 void initOwnAircraft();
261 void evaluateUpdateHistory();
CActionBind binds a member function to an action.
ContextMode
How to handle a given context.
The class providing facades (the contexts) for all DBus relevant operations.
Own aircraft context implementation. Central instance of data for.
virtual QObject * asQObject()
Return as QObject.
static void registerHelp()
Register help.
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Value object encapsulating information identifying a component of a modular distributed swift process...
static void registerCommand(const CommandHtmlHelp &command)
Register a command.
static bool registered(const QString &helpContext)
Help already registered.
Base class for providers.
Value object for ICAO classification.
Value object encapsulating information of aircraft's parts.
Value object encapsulating information of an aircraft's situation.
List of aircraft situations.
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.
Geodetic coordinate, a position in 3D space relative to the reference geoid.
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.
Direct threadsafe in memory access to own aircraft.
#define SWIFT_CORE_CONTEXTOWNAIRCRAFT_INTERFACENAME
DBus interface for context.
Backend services of the swift project, like dealing with the network or the simulators.
Free functions in swift::misc.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.