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 <QObject> |
15 | #include <QByteArray> |
16 | #include <QList> |
17 | #include <QMap> |
18 | #include <QString> |
19 | #include <QStringList> |
20 | #include <QVariant> |
21 | #include <QDBusAbstractInterface> |
22 | #include <QDBusPendingReply> |
23 | |
24 | #include "qibustypes.h" |
25 | |
26 | /* |
27 | * Proxy class for interface org.freedesktop.IBus |
28 | */ |
29 | class QIBusProxy: public QDBusAbstractInterface |
30 | { |
31 | Q_OBJECT |
32 | public: |
33 | static inline const char *staticInterfaceName() |
34 | { return "org.freedesktop.IBus" ; } |
35 | static inline QString dbusInterfaceProperties() |
36 | { return QStringLiteral("org.freedesktop.DBus.Properties" ); } |
37 | |
38 | public: |
39 | QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
40 | |
41 | ~QIBusProxy(); |
42 | |
43 | public Q_SLOTS: // METHODS |
44 | inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name) |
45 | { |
46 | QList<QVariant> argumentList; |
47 | argumentList << QVariant::fromValue(value: name); |
48 | return asyncCallWithArgumentList(method: QLatin1String("CreateInputContext" ), args: argumentList); |
49 | } |
50 | |
51 | inline QDBusPendingReply<> Exit(bool restart) |
52 | { |
53 | QList<QVariant> argumentList; |
54 | argumentList << QVariant::fromValue(value: restart); |
55 | return asyncCallWithArgumentList(method: QLatin1String("Exit" ), args: argumentList); |
56 | } |
57 | |
58 | inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data) |
59 | { |
60 | QList<QVariant> argumentList; |
61 | argumentList << QVariant::fromValue(value: data); |
62 | return asyncCallWithArgumentList(method: QLatin1String("Ping" ), args: argumentList); |
63 | } |
64 | |
65 | inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components) |
66 | { |
67 | QList<QVariant> argumentList; |
68 | argumentList << QVariant::fromValue(value: components); |
69 | return asyncCallWithArgumentList(method: QLatin1String("RegisterComponent" ), args: argumentList); |
70 | } |
71 | |
72 | // Property |
73 | inline QDBusPendingCall GetProperty(const QString method) |
74 | { |
75 | if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty()) |
76 | return QDBusPendingCall::fromError(error: this->lastError()); |
77 | |
78 | QDBusMessage msg = QDBusMessage::createMethodCall(destination: this->service(), |
79 | path: this->path(), |
80 | interface: dbusInterfaceProperties(), |
81 | QStringLiteral("Get" )); |
82 | msg << this->interface() << method; |
83 | return this->connection().asyncCall(message: msg, timeout: this->timeout()); |
84 | } |
85 | |
86 | #ifdef QIBUS_GET_ADDRESS |
87 | inline QDBusPendingCall Address() |
88 | { |
89 | return GetProperty(QStringLiteral("Address" )); |
90 | } |
91 | #endif |
92 | |
93 | #ifdef QIBUS_GET_ENGINES |
94 | inline QDBusPendingCall Engines() |
95 | { |
96 | return GetProperty(QStringLiteral("Engines" )); |
97 | } |
98 | #endif |
99 | |
100 | inline QDBusPendingCall GlobalEngine() |
101 | { |
102 | return GetProperty(QStringLiteral("GlobalEngine" )); |
103 | } |
104 | |
105 | #ifdef QIBUS_GET_ADDRESS |
106 | QString getAddress(); |
107 | #endif |
108 | #ifdef QIBUS_GET_ENGINES |
109 | QList<QIBusEngineDesc> getEngines(); |
110 | #endif |
111 | QIBusEngineDesc getGlobalEngine(); |
112 | |
113 | private Q_SLOTS: |
114 | void globalEngineChanged(const QString &engine_name); |
115 | |
116 | Q_SIGNALS: // SIGNALS |
117 | void GlobalEngineChanged(const QString &engine_name); |
118 | }; |
119 | |
120 | #endif |
121 | |