6 #ifndef SWIFT_MISC_TEST_TESTSERVICEINTERFACE_H
7 #define SWIFT_MISC_TEST_TESTSERVICEINTERFACE_H
9 #include <QDBusAbstractInterface>
10 #include <QDBusPendingCall>
11 #include <QDBusPendingReply>
12 #include <QLatin1String>
16 #include <QTextStream>
52 namespace simulation::FsCommon
54 class CAircraftCfgEntriesList;
81 return asyncCallWithArgumentList(
QLatin1String(
"getAtcStation"), argumentList);
89 return asyncCallWithArgumentList(
QLatin1String(
"getAircraftCfgEntriesList"), argumentList);
96 return asyncCallWithArgumentList(
QLatin1String(
"getAtcStationList"), argumentList);
103 return asyncCallWithArgumentList(
QLatin1String(
"getObjectPaths"), argumentList);
109 return asyncCallWithArgumentList(
QLatin1String(
"getSpeed"), argumentList);
117 return asyncCallWithArgumentList(
QLatin1String(
"pingAltitude"), argumentList);
125 return asyncCallWithArgumentList(
QLatin1String(
"pingSituation"), argumentList);
132 return asyncCallWithArgumentList(
QLatin1String(
"pingUser"), argumentList);
140 return asyncCallWithArgumentList(
QLatin1String(
"pingTransponder"), argumentList);
148 return asyncCallWithArgumentList(
QLatin1String(
"pingAtcStation"), argumentList);
156 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftIcaoData"), argumentList);
164 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftLights"), argumentList);
172 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftParts"), argumentList);
180 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftEngine"), argumentList);
188 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftModel"), argumentList);
196 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftModelList"), argumentList);
204 return asyncCallWithArgumentList(
QLatin1String(
"pingSimulatedAircraft"), argumentList);
212 return asyncCallWithArgumentList(
QLatin1String(
"pingPluginInfo"), argumentList);
220 return asyncCallWithArgumentList(
QLatin1String(
"pingAtcStationList"), argumentList);
228 return asyncCallWithArgumentList(
QLatin1String(
"pingSpeed"), argumentList);
236 return asyncCallWithArgumentList(
QLatin1String(
"pingAircraftList"), argumentList);
244 return asyncCallWithArgumentList(
QLatin1String(
"pingAirportList"), argumentList);
252 return asyncCallWithArgumentList(
QLatin1String(
"pingClientList"), argumentList);
259 return asyncCallWithArgumentList(
QLatin1String(
"pingClient"), argumentList);
266 return asyncCallWithArgumentList(
QLatin1String(
"pingCVariant"), argumentList);
273 return asyncCallWithArgumentList(
QLatin1String(
"pingPropertyIndex"), argumentList);
281 return asyncCallWithArgumentList(
QLatin1String(
"pingIndexVariantMap"), argumentList);
288 return asyncCallWithArgumentList(
QLatin1String(
"pingFlightPlan"), argumentList);
296 return asyncCallWithArgumentList(
QLatin1String(
"receiveAltitude"), argumentList);
303 return asyncCallWithArgumentList(
QLatin1String(
"receiveAtcStation"), argumentList);
310 return asyncCallWithArgumentList(
QLatin1String(
"receiveAtcStationList"), argumentList);
317 return asyncCallWithArgumentList(
QLatin1String(
"receiveCallsign"), argumentList);
324 return asyncCallWithArgumentList(
QLatin1String(
"receiveComUnit"), argumentList);
331 return asyncCallWithArgumentList(
QLatin1String(
"receiveGeoPosition"), argumentList);
338 return asyncCallWithArgumentList(
QLatin1String(
"receiveLength"), argumentList);
345 return asyncCallWithArgumentList(
QLatin1String(
"receiveVariantList"), argumentList);
352 return asyncCallWithArgumentList(
QLatin1String(
"receiveList"), argumentList);
359 return asyncCallWithArgumentList(
QLatin1String(
"receiveSpeed"), argumentList);
366 return asyncCallWithArgumentList(
QLatin1String(
"receiveStringMessage"), argumentList);
373 return asyncCallWithArgumentList(
QLatin1String(
"receiveTrack"), argumentList);
380 return asyncCallWithArgumentList(
QLatin1String(
"receiveTransponder"), argumentList);
387 return asyncCallWithArgumentList(
QLatin1String(
"receiveValueMap"), argumentList);
394 return asyncCallWithArgumentList(
QLatin1String(
"receiveVariant"), argumentList);
404 static const char *InterfaceName();
407 template <
class ValueObject>
408 static bool pingCompare(
const ValueObject &in,
const ValueObject &out,
QTextStream &ts,
bool verbose,
411 const bool equal = (in == out && extraCompare(in, out));
415 if (verbose) { ts <<
"I: " << in.toQString() <<
Qt::endl <<
"O: " << out.toQString() <<
Qt::endl; }
422 template <
class ValueObject>
423 static bool extraCompare(
const ValueObject &,
const ValueObject &)
441 static const QString &errorInfo(
bool ok);
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.
Value object for a flight plan.
const physical_quantities::CTime & getFuelTime() const
Get amount of fuel load in time.
const physical_quantities::CSpeed & getCruiseTrueAirspeed() const
Get planned cruise TAS.
const CAltitude & getCruiseAltitude() const
Cruising altitudes.
const physical_quantities::CTime & getEnrouteTime() const
Get planned enroute flight time.
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)
const MU & getUnit() const
Unit.
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.
Proxy class for swift::misc::Test::CTestService. This part is the caller.
QDBusPendingReply< swift::misc::aviation::CFlightPlan > pingFlightPlan(const aviation::CFlightPlan &flightPlan)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CTransponder > pingTransponder(const swift::misc::aviation::CTransponder &transponder)
DBus calls.
QDBusPendingReply< swift::misc::network::CClientList > pingClientList(const swift::misc::network::CClientList &clientList)
DBus calls.
QDBusPendingReply< swift::misc::simulation::CAircraftModel > pingAircraftModel(const swift::misc::simulation::CAircraftModel &model)
DBus calls.
QDBusPendingReply receiveAtcStation(const swift::misc::aviation::CAtcStation &station)
DBus calls.
QDBusPendingReply receiveStringMessage(const QString &message)
DBus calls.
QDBusPendingReply< swift::misc::simulation::fscommon::CAircraftCfgEntriesList > getAircraftCfgEntriesList(int number)
DBus calls.
QDBusPendingReply< swift::misc::CPropertyIndexVariantMap > pingIndexVariantMap(const swift::misc::CPropertyIndexVariantMap &indexVariantMap)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAltitude > pingAltitude(const swift::misc::aviation::CAltitude &altitude)
DBus calls.
QDBusPendingReply receiveSpeed(const swift::misc::physical_quantities::CSpeed &speed)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAircraftIcaoCode > pingAircraftIcaoData(const swift::misc::aviation::CAircraftIcaoCode &icaoData)
DBus calls.
void sendStringMessage(const QString &message)
send message
QDBusPendingReply< swift::misc::network::CUser > pingUser(const swift::misc::network::CUser &user)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAtcStation > pingAtcStation(const swift::misc::aviation::CAtcStation &station)
DBus calls.
QDBusPendingReply receiveVariantList(const swift::misc::CVariantList &list)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAtcStation > getAtcStation()
DBus calls.
QDBusPendingReply receiveCallsign(const swift::misc::aviation::CCallsign &callsign)
DBus calls.
QDBusPendingReply receiveLength(const swift::misc::physical_quantities::CLength &length)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAirportList > pingAirportList(const swift::misc::aviation::CAirportList &airportList)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAircraftLights > pingAircraftLights(const swift::misc::aviation::CAircraftLights &lights)
DBus calls.
QDBusPendingReply receiveList(const QList< double > &list)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAtcStationList > pingAtcStationList(const swift::misc::aviation::CAtcStationList &atcStationList)
DBus calls.
QDBusPendingReply receiveComUnit(const swift::misc::aviation::CComSystem &comUnit)
DBus calls.
QDBusPendingReply receiveGeoPosition(const swift::misc::geo::CCoordinateGeodetic &geo)
DBus calls.
QDBusPendingReply receiveTransponder(const swift::misc::aviation::CTransponder &transponder)
DBus calls.
QDBusPendingReply< swift::misc::simulation::CAircraftModelList > pingAircraftModelList(const swift::misc::simulation::CAircraftModelList &model)
DBus calls.
QDBusPendingReply< swift::misc::CPropertyIndex > pingPropertyIndex(const swift::misc::CPropertyIndex &index)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAltitude > receiveAltitude(const swift::misc::aviation::CAltitude &altitude)
DBus calls.
QDBusPendingReply< QList< QDBusObjectPath > > getObjectPaths(int number)
DBus calls.
QDBusPendingReply< swift::misc::physical_quantities::CSpeed > getSpeed()
DBus calls.
QDBusPendingReply receiveAtcStationList(const swift::misc::aviation::CAtcStationList &atcStationList)
DBus calls.
QDBusPendingReply receiveTrack(const swift::misc::aviation::CTrack &track)
DBus calls.
QDBusPendingReply< swift::misc::CVariant > pingCVariant(const swift::misc::CVariant &variant)
DBus calls.
QDBusPendingReply< swift::misc::network::CClient > pingClient(const swift::misc::network::CClient &client)
DBus calls.
QDBusPendingReply receiveVariant(const QDBusVariant &variant, int localMetyType)
DBus calls.
QDBusPendingReply< swift::misc::simulation::CSimulatorPluginInfo > pingPluginInfo(const swift::misc::simulation::CSimulatorPluginInfo &info)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAircraftSituation > pingSituation(const swift::misc::aviation::CAircraftSituation &situation)
DBus calls.
QDBusPendingReply receiveValueMap(const swift::misc::CPropertyIndexVariantMap &valueMap)
DBus calls.
QDBusPendingReply< swift::misc::physical_quantities::CSpeed > pingSpeed(const swift::misc::physical_quantities::CSpeed &speed)
DBus calls.
QDBusPendingReply< swift::misc::simulation::CSimulatedAircraftList > pingAircraftList(const swift::misc::simulation::CSimulatedAircraftList &aircraftList)
DBus calls.
QDBusPendingReply< swift::misc::simulation::CSimulatedAircraft > pingSimulatedAircraft(const swift::misc::simulation::CSimulatedAircraft &aircraft)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAircraftParts > pingAircraftParts(const swift::misc::aviation::CAircraftParts &parts)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAircraftEngine > pingAircraftEngine(const swift::misc::aviation::CAircraftEngine &engine)
DBus calls.
QDBusPendingReply< swift::misc::aviation::CAtcStationList > getAtcStationList(int number)
DBus calls.
Generate data for testing purposes.
Free functions in swift::misc.
QTextStream & endl(QTextStream &stream)
QVariant fromValue(T &&value)
#define SWIFT_MISC_EXPORT
Export a class or function from the library.