6#ifndef SWIFT_MISC_TEST_TESTSERVICE_H
7#define SWIFT_MISC_TEST_TESTSERVICE_H
10#pragma push_macro("interface")
13#include <QDBusConnection>
14#include <QDBusObjectPath>
19#include <QVariantList>
50namespace swift::misc::aviation
58#define SWIFT_MISC_TESTSERVICE_INTERFACENAME "misc.test"
92 static const QString &InterfaceName();
95 static const QString &ObjectPath();
242 bool m_verbose =
true;
246#pragma pop_macro("interface")
Specialized value object compliant map for variants, based on indexes.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Value object encapsulating a list of variants.
Value object encapsulating information about aircraft's engines.
Value object for ICAO classification.
Value object encapsulating information about aircraft's lights.
Value object encapsulating information of aircraft's parts.
Value object encapsulating information of an aircraft's situation.
Value object for a list of airports.
Altitude as used in aviation, can be AGL or MSL altitude.
Value object encapsulating information about an ATC station.
Value object for a list of ATC stations.
Value object encapsulating information of a callsign.
COM system (aka "radio").
Value object for a flight plan.
Track as used in aviation, can be true or magnetic Track.
Value object encapsulating a list of voice rooms.
Value object encapsulating information of a user.
Physical unit length (length).
Aircraft model (used by another pilot, my models on disk).
Value object encapsulating a list of aircraft models.
Comprehensive information of an aircraft.
Value object encapsulating a list of aircraft.
Describing a simulator plugin.
Utility, providing FS aircraft.cfg entries.
swift::misc::aviation::CAircraftLights pingAircraftLights(const swift::misc::aviation::CAircraftLights &aircraftLights) const
Ping aircraft lights.
swift::misc::network::CUser pingUser(const swift::misc::network::CUser &user) const
Ping user.
swift::misc::aviation::CAircraftIcaoCode pingAircraftIcaoData(const swift::misc::aviation::CAircraftIcaoCode &icao) const
Ping ICAO data object.
void receiveAltitude(const swift::misc::aviation::CAltitude &altitude) const
Receive altitude.
void receiveSpeed(const swift::misc::physical_quantities::CSpeed &speed) const
Receive speed.
swift::misc::aviation::CTransponder pingTransponder(const swift::misc::aviation::CTransponder &transponder) const
Ping transponder.
swift::misc::aviation::CAircraftParts pingAircraftParts(const swift::misc::aviation::CAircraftParts &aircraftParts) const
Ping parts.
void receiveTransponder(const swift::misc::aviation::CTransponder &transponder) const
Receive transponder.
void receiveValueMap(const swift::misc::CPropertyIndexVariantMap &valueMap) const
Receive an value map.
swift::misc::simulation::CAircraftModelList pingAircraftModelList(const swift::misc::simulation::CAircraftModelList &aircraftModels) const
Ping model.
swift::misc::aviation::CFlightPlan pingFlightPlan(const swift::misc::aviation::CFlightPlan &flightPlan) const
Ping flight plan.
static bool canRegisterTestService(QDBusConnection &connection)
Can the testservice be registered?
swift::misc::physical_quantities::CSpeed pingSpeed(const swift::misc::physical_quantities::CSpeed &speed) const
Ping speed.
swift::misc::simulation::CSimulatedAircraftList pingAircraftList(const swift::misc::simulation::CSimulatedAircraftList &aircraftList) const
Ping aircraft list.
void receiveVariant(const swift::misc::CVariant &variant) const
Receive a QVariant.
swift::misc::simulation::fscommon::CAircraftCfgEntriesList getAircraftCfgEntriesList(int n) const
Return stations via DBus.
void receiveAtcStationList(const swift::misc::aviation::CAtcStationList &atcStationList) const
Receive ATC list.
swift::misc::simulation::CAircraftModel pingAircraftModel(const swift::misc::simulation::CAircraftModel &aircraftModel) const
Ping model.
swift::misc::CPropertyIndex pingPropertyIndex(const swift::misc::CPropertyIndex &properties) const
Ping property index.
void receiveLength(const swift::misc::physical_quantities::CLength &length) const
Receive a length.
void receiveVariantList(const swift::misc::CVariantList &variantList) const
Receive variant list.
swift::misc::aviation::CAtcStationList getAtcStationList(int n) const
Return stations via DBus.
swift::misc::simulation::CSimulatedAircraft pingSimulatedAircraft(const swift::misc::simulation::CSimulatedAircraft &aircraft) const
Ping simulated aircraft.
swift::misc::aviation::CAtcStationList pingAtcStationList(const swift::misc::aviation::CAtcStationList &atcStationList) const
Ping ATC list.
QList< QDBusObjectPath > getObjectPaths(int n) const
Return paths via DBus.
swift::misc::aviation::CAircraftSituation pingSituation(const swift::misc::aviation::CAircraftSituation &situation) const
Ping situation.
swift::misc::network::CClient pingClient(const swift::misc::network::CClient &client) const
Ping client.
swift::misc::simulation::CSimulatorPluginInfo pingPluginInfo(const swift::misc::simulation::CSimulatorPluginInfo &info) const
Ping plugin info.
void receiveTrack(const swift::misc::aviation::CTrack &track) const
Receive track.
swift::misc::aviation::CAtcStation pingAtcStation(const swift::misc::aviation::CAtcStation &station) const
Ping ATC station.
void sendStringMessage(const QString &message)
Send string message.
void receiveList(const QList< double > &list) const
Receive list.
swift::misc::network::CClientList pingClientList(const swift::misc::network::CClientList &clientList) const
Ping NW clients list.
swift::misc::aviation::CAirportList pingAirportList(const swift::misc::aviation::CAirportList &airportList) const
Ping airports list.
void receiveComUnit(const swift::misc::aviation::CComSystem &comUnit) const
Receive com unit.
swift::misc::aviation::CAltitude pingAltitude(const swift::misc::aviation::CAltitude &altitude) const
Ping altitude.
static CTestService * registerTestService(QDBusConnection &connection, bool verbose, QObject *parent=nullptr)
Register testservice with connection.
swift::misc::aviation::CAircraftEngine pingAircraftEngine(const swift::misc::aviation::CAircraftEngine &aircraftEngine) const
Ping engine.
void receiveStringMessage(const QString &message) const
Receive string message.
CTestService(QObject *parent=nullptr)
Constructor.
static bool unregisterTestService(QDBusConnection &connection)
Can the testservice be registered?
swift::misc::CPropertyIndexVariantMap pingIndexVariantMap(const swift::misc::CPropertyIndexVariantMap &indexVariantMap) const
Ping index variant map.
swift::misc::CVariant pingCVariant(const swift::misc::CVariant &variant) const
Ping CVariant.
void receiveCallsign(const swift::misc::aviation::CCallsign &callsign) const
Receive callsign.
void receiveGeoPosition(const swift::misc::geo::CCoordinateGeodetic &geo) const
Receive a geo position.
static qint64 getPid()
Process id.
void receiveAtcStation(const swift::misc::aviation::CAtcStation &station) const
Receive ATC station.
Generate data for testing purposes.
QObject * parent() const const
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_MISC_TESTSERVICE_INTERFACENAME
DBus interface for test service.