swift
Loading...
Searching...
No Matches
ownaircraftproviderdummy.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_MISC_SIMULATION_OWNAIRCRAFTPROVIDERDUMMY_H
7#define SWIFT_MISC_SIMULATION_OWNAIRCRAFTPROVIDERDUMMY_H
8
9#include <QObject>
10#include <QReadWriteLock>
11
17#include "misc/identifier.h"
18#include "misc/pq/frequency.h"
19#include "misc/pq/length.h"
24
25namespace swift::misc
26{
27 namespace aviation
28 {
31 class CCallsign;
32 class CTransponder;
33 } // namespace aviation
34
35 namespace simulation
36 {
39 {
41
42 public:
45
48
50 CSimulatedAircraft getOwnAircraft() const override;
51
53 aviation::CCallsign getOwnCallsign() const override;
54
57
60
63
66
69
72
76
77 public slots:
81 const swift::misc::aviation::CTransponder &transponder,
82 const swift::misc::CIdentifier &originator) override;
83
87 const swift::misc::CIdentifier &originator) override;
88
91 const swift::misc::CIdentifier &originator) override;
92
94 bool updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign) override;
95
98
101 const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode) override;
102
105
107 bool updateOwnParts(const swift::misc::aviation::CAircraftParts &parts) override;
108
111
112 private:
114 mutable QReadWriteLock m_lock;
115 };
116 } // namespace simulation
117} // namespace swift::misc
118
119#endif // SWIFT_MISC_SIMULATION_OWNAIRCRAFTPROVIDERDUMMY_H
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 aircraft's parts.
Value object encapsulating information of an aircraft's situation.
Value object for ICAO classification.
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
Geodetic coordinate, a position in 3D space relative to the reference geoid.
Physical unit length (length).
Definition length.h:18
Aircraft model (used by another pilot, my models on disk).
bool updateSelcal(const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
Update cockpit, but only send signals when applicable.
bool updateOwnModel(const swift::misc::simulation::CAircraftModel &model)
Update model.
aviation::CComSystem getOwnComSystem(aviation::CComSystem::ComUnit unit) const
Own aircraft COM unit.
bool updateOwnCallsign(const swift::misc::aviation::CCallsign &callsign)
Update aircraft's callsign.
bool updateOwnIcaoCodes(const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
Update ICAO data.
bool updateOwnCG(const swift::misc::physical_quantities::CLength &cg)
Update own aircraft's CG (aka vertical offset).
bool updateOwnSituation(const swift::misc::aviation::CAircraftSituation &situation)
Update own situation.
static COwnAircraftProviderDummy * instance()
Singleton.
aviation::CTransponder getOwnTransponder() const
Own aircraft XPDR.
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 cockpit, but only send signals when applicable.
swift::misc::aviation::CAircraftParts getOwnAircraftParts() const
Own aircraft's parts.
bool updateActiveComFrequency(const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
Update cockpit, but only send signals when applicable.
swift::misc::geo::CCoordinateGeodetic getOwnAircraftPosition() const
Own aircraft's position.
aviation::CCallsign getOwnCallsign() const
Own aircraft's callsign.
swift::misc::simulation::CAircraftModel getOwnAircraftModel() const
Own aircraft model.
CSimulatedAircraft getOwnAircraft() const
Own aircraft.
bool updateOwnParts(const swift::misc::aviation::CAircraftParts &parts)
Update own parts.
swift::misc::aviation::CAircraftSituation getOwnAircraftSituation() const
Own aircraft's situation.
swift::misc::physical_quantities::CLength getDistanceToOwnAircraft(const swift::misc::geo::ICoordinateGeodetic &position) const
Distance to own aircraft.
Comprehensive information of an aircraft.
Direct threadsafe in memory access to own aircraft.
Free functions in swift::misc.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
#define SWIFT_MISC_EXPORT
Export a class or function from the library.