| 1 | /* | 
| 2 |  * This file was generated by qdbusxml2cpp version 0.7 | 
| 3 |  * Command line was: qdbusxml2cpp -N -p qibusproxy -c QIBusProxy interfaces/org.freedesktop.IBus.xml | 
| 4 |  * | 
| 5 |  * qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd. | 
| 6 |  * | 
| 7 |  * This is an auto-generated file. | 
| 8 |  * Do not edit! All changes made to it will be lost. | 
| 9 |  */ | 
| 10 |  | 
| 11 | #ifndef QIBUSPROXY_H_1308831142 | 
| 12 | #define QIBUSPROXY_H_1308831142 | 
| 13 |  | 
| 14 | #include <QtCore/QObject> | 
| 15 | #include <QtCore/QByteArray> | 
| 16 | #include <QtCore/QList> | 
| 17 | #include <QtCore/QMap> | 
| 18 | #include <QtCore/QString> | 
| 19 | #include <QtCore/QStringList> | 
| 20 | #include <QtCore/QVariant> | 
| 21 | #include <QtDBus/QtDBus> | 
| 22 |  | 
| 23 | #include "qibustypes.h" | 
| 24 |  | 
| 25 | /* | 
| 26 |  * Proxy class for interface org.freedesktop.IBus | 
| 27 |  */ | 
| 28 | class QIBusProxy: public QDBusAbstractInterface | 
| 29 | { | 
| 30 |     Q_OBJECT | 
| 31 | public: | 
| 32 |     static inline const char *staticInterfaceName() | 
| 33 |     { return "org.freedesktop.IBus" ; } | 
| 34 |     static inline QString dbusInterfaceProperties() | 
| 35 |     { return QStringLiteral("org.freedesktop.DBus.Properties" ); } | 
| 36 |  | 
| 37 | public: | 
| 38 |     QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); | 
| 39 |  | 
| 40 |     ~QIBusProxy(); | 
| 41 |  | 
| 42 | public Q_SLOTS: // METHODS | 
| 43 |     inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name) | 
| 44 |     { | 
| 45 |         QList<QVariant> argumentList; | 
| 46 |         argumentList << QVariant::fromValue(value: name); | 
| 47 |         return asyncCallWithArgumentList(method: QLatin1String("CreateInputContext" ), args: argumentList); | 
| 48 |     } | 
| 49 |  | 
| 50 |     inline QDBusPendingReply<> Exit(bool restart) | 
| 51 |     { | 
| 52 |         QList<QVariant> argumentList; | 
| 53 |         argumentList << QVariant::fromValue(value: restart); | 
| 54 |         return asyncCallWithArgumentList(method: QLatin1String("Exit" ), args: argumentList); | 
| 55 |     } | 
| 56 |  | 
| 57 |     inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data) | 
| 58 |     { | 
| 59 |         QList<QVariant> argumentList; | 
| 60 |         argumentList << QVariant::fromValue(value: data); | 
| 61 |         return asyncCallWithArgumentList(method: QLatin1String("Ping" ), args: argumentList); | 
| 62 |     } | 
| 63 |  | 
| 64 |     inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components) | 
| 65 |     { | 
| 66 |         QList<QVariant> argumentList; | 
| 67 |         argumentList << QVariant::fromValue(value: components); | 
| 68 |         return asyncCallWithArgumentList(method: QLatin1String("RegisterComponent" ), args: argumentList); | 
| 69 |     } | 
| 70 |  | 
| 71 | // Property | 
| 72 |     inline QDBusPendingCall GetProperty(const QString method) | 
| 73 |     { | 
| 74 |         if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty()) | 
| 75 |              return QDBusPendingCall::fromError(error: this->lastError()); | 
| 76 |  | 
| 77 |         QDBusMessage msg = QDBusMessage::createMethodCall(destination: this->service(), | 
| 78 |                                                           path: this->path(), | 
| 79 |                                                           interface: dbusInterfaceProperties(), | 
| 80 |                                                           QStringLiteral("Get" )); | 
| 81 |         msg << this->interface() << method; | 
| 82 |         return this->connection().asyncCall(message: msg, timeout: this->timeout()); | 
| 83 |     } | 
| 84 |  | 
| 85 | #ifdef QIBUS_GET_ADDRESS | 
| 86 |     inline QDBusPendingCall Address() | 
| 87 |     { | 
| 88 |         return GetProperty(QStringLiteral("Address" )); | 
| 89 |     } | 
| 90 | #endif | 
| 91 |  | 
| 92 | #ifdef QIBUS_GET_ENGINES | 
| 93 |     inline QDBusPendingCall Engines() | 
| 94 |     { | 
| 95 |         return GetProperty(QStringLiteral("Engines" )); | 
| 96 |     } | 
| 97 | #endif | 
| 98 |  | 
| 99 |     inline QDBusPendingCall GlobalEngine() | 
| 100 |     { | 
| 101 |         return GetProperty(QStringLiteral("GlobalEngine" )); | 
| 102 |     } | 
| 103 |  | 
| 104 | #ifdef QIBUS_GET_ADDRESS | 
| 105 |     QString getAddress(); | 
| 106 | #endif | 
| 107 | #ifdef QIBUS_GET_ENGINES | 
| 108 |     QList<QIBusEngineDesc> getEngines(); | 
| 109 | #endif | 
| 110 |     QIBusEngineDesc getGlobalEngine(); | 
| 111 |  | 
| 112 | private: | 
| 113 |     void globalEngineChanged(const QString &engine_name); | 
| 114 |  | 
| 115 | Q_SIGNALS: // SIGNALS | 
| 116 |     void GlobalEngineChanged(const QString &engine_name); | 
| 117 | }; | 
| 118 |  | 
| 119 | #endif | 
| 120 |  |