/* Copyright (C) 2013 * swift Project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, * including this file, may be copied, modified, propagated, or distributed except according to the terms * contained in the LICENSE file. */ //! \file //! \ingroup sampleblackmiscdbus #ifndef BLACKSAMPLE_TESTSERVICE_INTERFACE_H #define BLACKSAMPLE_TESTSERVICE_INTERFACE_H #include "blackmisc/blackmiscfreefunctions.h" #include "blackmisc/aviation/atcstationlist.h" #include "blackmisc/aviation/track.h" #include "blackmisc/aviation/transponder.h" #include "blackmisc/aviation/airportlist.h" #include "blackmisc/simulation/fscommon/aircraftcfgentrieslist.h" #include "blackmisc/simulation/simulatedaircraftlist.h" #include "blackmisc/simulation/simulatorplugininfo.h" #include "blackmisc/network/clientlist.h" #include "blackmisc/variantlist.h" #include #include #include #include #include #include #include #include namespace BlackSample { //! Proxy class for interface blackmisctest.testservice class TestServiceInterface: public QDBusAbstractInterface { Q_OBJECT public: //! Interface name static inline const char *staticInterfaceName() { return "blackmisctest.testservice"; } public: //! Constructor TestServiceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); //! Destructor ~TestServiceInterface(); public Q_SLOTS: //! DBus calls //! @{ inline QDBusPendingReply getAtcStation() { QList argumentList; return asyncCallWithArgumentList(QLatin1String("getAtcStation"), argumentList); } inline QDBusPendingReply getAircraftCfgEntriesList(int number) { QList argumentList; argumentList << QVariant::fromValue(number); return asyncCallWithArgumentList(QLatin1String("getAircraftCfgEntriesList"), argumentList); } inline QDBusPendingReply getAtcStationList(int number) { QList argumentList; argumentList << QVariant::fromValue(number); return asyncCallWithArgumentList(QLatin1String("getAtcStationList"), argumentList); } inline QDBusPendingReply > getObjectPaths(int number) { QList argumentList; argumentList << QVariant::fromValue(number); return asyncCallWithArgumentList(QLatin1String("getObjectPaths"), argumentList); } inline QDBusPendingReply getSpeed() { QList argumentList; return asyncCallWithArgumentList(QLatin1String("getSpeed"), argumentList); } inline QDBusPendingReply pingAltitude(BlackMisc::Aviation::CAltitude altitude) { QList argumentList; argumentList << QVariant::fromValue(altitude); return asyncCallWithArgumentList(QLatin1String("pingAltitude"), argumentList); } inline QDBusPendingReply pingSituation(BlackMisc::Aviation::CAircraftSituation situation) { QList argumentList; argumentList << QVariant::fromValue(situation); return asyncCallWithArgumentList(QLatin1String("pingSituation"), argumentList); } inline QDBusPendingReply pingUser(BlackMisc::Network::CUser user) { QList argumentList; argumentList << QVariant::fromValue(user); return asyncCallWithArgumentList(QLatin1String("pingUser"), argumentList); } inline QDBusPendingReply pingTransponder(BlackMisc::Aviation::CTransponder transponder) { QList argumentList; argumentList << QVariant::fromValue(transponder); return asyncCallWithArgumentList(QLatin1String("pingTransponder"), argumentList); } inline QDBusPendingReply pingAtcStation(BlackMisc::Aviation::CAtcStation station) { QList argumentList; argumentList << QVariant::fromValue(station); return asyncCallWithArgumentList(QLatin1String("pingAtcStation"), argumentList); } inline QDBusPendingReply pingAircraftIcaoData(BlackMisc::Aviation::CAircraftIcaoCode icaoData) { QList argumentList; argumentList << QVariant::fromValue(icaoData); return asyncCallWithArgumentList(QLatin1String("pingIcaoData"), argumentList); } inline QDBusPendingReply pingAircraft(BlackMisc::Simulation::CSimulatedAircraft aircraft) { QList argumentList; argumentList << QVariant::fromValue(aircraft); return asyncCallWithArgumentList(QLatin1String("pingAircraft"), argumentList); } inline QDBusPendingReply pingSimulatedAircraft(BlackMisc::Simulation::CSimulatedAircraft aircraft) { QList argumentList; argumentList << QVariant::fromValue(aircraft); return asyncCallWithArgumentList(QLatin1String("pingSimulatedAircraft"), argumentList); } inline QDBusPendingReply pingPluginInfo(BlackMisc::Simulation::CSimulatorPluginInfo info) { QList argumentList; argumentList << QVariant::fromValue(info); return asyncCallWithArgumentList(QLatin1String("pingPluginInfo"), argumentList); } inline QDBusPendingReply pingAtcStationList(BlackMisc::Aviation::CAtcStationList atcStationList) { QList argumentList; argumentList << QVariant::fromValue(atcStationList); return asyncCallWithArgumentList(QLatin1String("pingAtcStationList"), argumentList); } inline QDBusPendingReply pingSpeed(BlackMisc::PhysicalQuantities::CSpeed speed) { QList argumentList; argumentList << QVariant::fromValue(speed); return asyncCallWithArgumentList(QLatin1String("pingSpeed"), argumentList); } inline QDBusPendingReply pingAircraftList(BlackMisc::Simulation::CSimulatedAircraftList aircraftList) { QList argumentList; argumentList << QVariant::fromValue(aircraftList); return asyncCallWithArgumentList(QLatin1String("pingAircraftList"), argumentList); } inline QDBusPendingReply pingAirportList(BlackMisc::Aviation::CAirportList airportList) { QList argumentList; argumentList << QVariant::fromValue(airportList); return asyncCallWithArgumentList(QLatin1String("pingAirportList"), argumentList); } inline QDBusPendingReply pingClientList(BlackMisc::Network::CClientList clientList) { QList argumentList; argumentList << QVariant::fromValue(clientList); return asyncCallWithArgumentList(QLatin1String("pingClientList"), argumentList); } inline QDBusPendingReply pingClient(BlackMisc::Network::CClient client) { QList argumentList; argumentList << QVariant::fromValue(client); return asyncCallWithArgumentList(QLatin1String("pingClient"), argumentList); } inline QDBusPendingReply pingCVariant(BlackMisc::Network::CClient client) { QList argumentList; argumentList << QVariant::fromValue(client); return asyncCallWithArgumentList(QLatin1String("pingCVariant"), argumentList); } inline QDBusPendingReply pingPropertyIndex(BlackMisc::CPropertyIndex index) { QList argumentList; argumentList << QVariant::fromValue(index); return asyncCallWithArgumentList(QLatin1String("pingPropertyIndex"), argumentList); } inline QDBusPendingReply pingIndexVariantMap(BlackMisc::CPropertyIndexVariantMap indexVariantMap) { QList argumentList; argumentList << QVariant::fromValue(indexVariantMap); return asyncCallWithArgumentList(QLatin1String("pingIndexVariantMap"), argumentList); } inline QDBusPendingReply receiveAltitude(BlackMisc::Aviation::CAltitude altitude) { QList argumentList; argumentList << QVariant::fromValue(altitude); return asyncCallWithArgumentList(QLatin1String("receiveAltitude"), argumentList); } inline QDBusPendingReply<> receiveAtcStation(BlackMisc::Aviation::CAtcStation station) { QList argumentList; argumentList << QVariant::fromValue(station); return asyncCallWithArgumentList(QLatin1String("receiveAtcStation"), argumentList); } inline QDBusPendingReply<> receiveAtcStationList(BlackMisc::Aviation::CAtcStationList AtcStationList) { QList argumentList; argumentList << QVariant::fromValue(AtcStationList); return asyncCallWithArgumentList(QLatin1String("receiveAtcStationList"), argumentList); } inline QDBusPendingReply<> receiveCallsign(BlackMisc::Aviation::CCallsign callsign) { QList argumentList; argumentList << QVariant::fromValue(callsign); return asyncCallWithArgumentList(QLatin1String("receiveCallsign"), argumentList); } inline QDBusPendingReply<> receiveComUnit(BlackMisc::Aviation::CComSystem comUnit) { QList argumentList; argumentList << QVariant::fromValue(comUnit); return asyncCallWithArgumentList(QLatin1String("receiveComUnit"), argumentList); } inline QDBusPendingReply<> receiveGeoPosition(BlackMisc::Geo::CCoordinateGeodetic geo) { QList argumentList; argumentList << QVariant::fromValue(geo); return asyncCallWithArgumentList(QLatin1String("receiveGeoPosition"), argumentList); } inline QDBusPendingReply<> receiveLength(BlackMisc::PhysicalQuantities::CLength length) { QList argumentList; argumentList << QVariant::fromValue(length); return asyncCallWithArgumentList(QLatin1String("receiveLength"), argumentList); } inline QDBusPendingReply<> receiveLengthsQl(const BlackMisc::CVariantList &lengthsList) { QList argumentList; argumentList << QVariant::fromValue(lengthsList); return asyncCallWithArgumentList(QLatin1String("receiveLengthsQl"), argumentList); } inline QDBusPendingReply<> receiveLengthsQvl(const BlackMisc::CVariantList &lengthsVariantList) { QList argumentList; argumentList << QVariant::fromValue(lengthsVariantList); return asyncCallWithArgumentList(QLatin1String("receiveLengthsQvl"), argumentList); } inline QDBusPendingReply<> receiveList(const QList &list) { QList argumentList; argumentList << QVariant::fromValue(list); return asyncCallWithArgumentList(QLatin1String("receiveList"), argumentList); } inline QDBusPendingReply<> receiveSpeed(BlackMisc::PhysicalQuantities::CSpeed speed) { QList argumentList; argumentList << QVariant::fromValue(speed); return asyncCallWithArgumentList(QLatin1String("receiveSpeed"), argumentList); } inline QDBusPendingReply<> receiveStringMessage(const QString &message) { QList argumentList; argumentList << QVariant::fromValue(message); return asyncCallWithArgumentList(QLatin1String("receiveStringMessage"), argumentList); } inline QDBusPendingReply<> receiveTrack(BlackMisc::Aviation::CTrack track) { QList argumentList; argumentList << QVariant::fromValue(track); return asyncCallWithArgumentList(QLatin1String("receiveTrack"), argumentList); } inline QDBusPendingReply<> receiveTransponder(BlackMisc::Aviation::CTransponder transponder) { QList argumentList; argumentList << QVariant::fromValue(transponder); return asyncCallWithArgumentList(QLatin1String("receiveTransponder"), argumentList); } inline QDBusPendingReply<> receiveValueMap(BlackMisc::CPropertyIndexVariantMap valueMap) { QList argumentList; argumentList << QVariant::fromValue(valueMap); return asyncCallWithArgumentList(QLatin1String("receiveValueMap"), argumentList); } inline QDBusPendingReply<> receiveVariant(const QDBusVariant &variant, int localMetyType) { QList argumentList; argumentList << QVariant::fromValue(variant) << QVariant::fromValue(localMetyType); return asyncCallWithArgumentList(QLatin1String("receiveVariant"), argumentList); } //! @} Q_SIGNALS: //! send message void sendStringMessage(const QString &message); }; } // namespace #endif