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>
18 #include <QTextStream>
19 #include <QVariantList>
47 class QDBusObjectPath;
50 namespace swift::misc::aviation
58 #define SWIFT_MISC_TESTSERVICE_INTERFACENAME "misc.test"
77 explicit CTestService(
bool verbose, QObject *parent =
nullptr);
80 static bool canRegisterTestService(QDBusConnection &connection);
83 static CTestService *registerTestService(QDBusConnection &connection,
bool verbose, QObject *parent =
nullptr);
86 static bool unregisterTestService(QDBusConnection &connection);
89 static qint64
getPid() {
return QCoreApplication::applicationPid(); }
92 static const QString &InterfaceName();
95 static const QString &ObjectPath();
103 void receiveStringMessage(
const QString &message)
const;
118 void receiveList(
const QList<double> &list)
const;
237 QList<QDBusObjectPath> getObjectPaths(
int n)
const;
240 static QTextStream &out();
241 static QTextStream &err();
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.
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.
Testservice for PQ / CValueObject DBus tests. This part is the callee.
void sendStringMessage(const QString &message)
Send string message.
static qint64 getPid()
Process id.
Generate data for testing purposes.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_MISC_TESTSERVICE_INTERFACENAME
DBus interface for test service.