Changeset View
Changeset View
Standalone View
Standalone View
kcms/keyboard/fcitx/fcitxqtinputmethodproxy.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * This file was generated by qdbusxml2cpp version 0.8 | ||||
3 | * Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy org.fcitx.Fcitx.InputMethod.xml -i fcitxqtinputmethoditem.h -i fcitxqtdbusaddons_export.h | ||||
4 | * | ||||
5 | * qdbusxml2cpp is Copyright (C) 2017 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 FCITXQTINPUTMETHODPROXY_H | ||||
12 | #define FCITXQTINPUTMETHODPROXY_H | ||||
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 | #include "fcitxqtinputmethoditem.h" | ||||
23 | #include "fcitxqtdbusaddons_export.h" | ||||
24 | | ||||
25 | /* | ||||
26 | * Proxy class for interface org.fcitx.Fcitx.InputMethod | ||||
27 | */ | ||||
28 | class FcitxQtInputMethodProxy: public QDBusAbstractInterface | ||||
29 | { | ||||
30 | Q_OBJECT | ||||
31 | public: | ||||
32 | static inline const char *staticInterfaceName() | ||||
33 | { return "org.fcitx.Fcitx.InputMethod"; } | ||||
34 | | ||||
35 | public: | ||||
36 | FcitxQtInputMethodProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); | ||||
37 | | ||||
38 | ~FcitxQtInputMethodProxy(); | ||||
39 | | ||||
40 | Q_PROPERTY(QString CurrentIM READ currentIM WRITE setCurrentIM) | ||||
41 | inline QString currentIM() const | ||||
42 | { return qvariant_cast< QString >(property("CurrentIM")); } | ||||
43 | inline void setCurrentIM(const QString &value) | ||||
44 | { setProperty("CurrentIM", QVariant::fromValue(value)); } | ||||
45 | | ||||
46 | Q_PROPERTY(FcitxQtInputMethodItemList IMList READ iMList WRITE setIMList) | ||||
47 | inline FcitxQtInputMethodItemList iMList() const | ||||
48 | { qDebug() << property("IMList"); | ||||
49 | return qvariant_cast< FcitxQtInputMethodItemList >(property("IMList")); } | ||||
50 | inline void setIMList(FcitxQtInputMethodItemList value) | ||||
51 | { setProperty("IMList", QVariant::fromValue(value)); } | ||||
52 | | ||||
53 | public Q_SLOTS: // METHODS | ||||
54 | inline QDBusPendingReply<> ActivateIM() | ||||
55 | { | ||||
56 | QList<QVariant> argumentList; | ||||
57 | return asyncCallWithArgumentList(QStringLiteral("ActivateIM"), argumentList); | ||||
58 | } | ||||
59 | | ||||
60 | inline QDBusPendingReply<> Configure() | ||||
61 | { | ||||
62 | QList<QVariant> argumentList; | ||||
63 | return asyncCallWithArgumentList(QStringLiteral("Configure"), argumentList); | ||||
64 | } | ||||
65 | | ||||
66 | inline QDBusPendingReply<> ConfigureAddon(const QString &addon) | ||||
67 | { | ||||
68 | QList<QVariant> argumentList; | ||||
69 | argumentList << QVariant::fromValue(addon); | ||||
70 | return asyncCallWithArgumentList(QStringLiteral("ConfigureAddon"), argumentList); | ||||
71 | } | ||||
72 | | ||||
73 | inline QDBusPendingReply<> ConfigureIM(const QString &im) | ||||
74 | { | ||||
75 | QList<QVariant> argumentList; | ||||
76 | argumentList << QVariant::fromValue(im); | ||||
77 | return asyncCallWithArgumentList(QStringLiteral("ConfigureIM"), argumentList); | ||||
78 | } | ||||
79 | | ||||
80 | inline QDBusPendingReply<int, uint, uint, uint, uint> CreateIC() | ||||
81 | { | ||||
82 | QList<QVariant> argumentList; | ||||
83 | return asyncCallWithArgumentList(QStringLiteral("CreateIC"), argumentList); | ||||
84 | } | ||||
85 | inline QDBusReply<int> CreateIC(uint &keyval1, uint &state1, uint &keyval2, uint &state2) | ||||
86 | { | ||||
87 | QList<QVariant> argumentList; | ||||
88 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateIC"), argumentList); | ||||
89 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 5) { | ||||
90 | keyval1 = qdbus_cast<uint>(reply.arguments().at(1)); | ||||
91 | state1 = qdbus_cast<uint>(reply.arguments().at(2)); | ||||
92 | keyval2 = qdbus_cast<uint>(reply.arguments().at(3)); | ||||
93 | state2 = qdbus_cast<uint>(reply.arguments().at(4)); | ||||
94 | } | ||||
95 | return reply; | ||||
96 | } | ||||
97 | | ||||
98 | inline QDBusPendingReply<int, bool, uint, uint, uint, uint> CreateICv2(const QString &appname) | ||||
99 | { | ||||
100 | QList<QVariant> argumentList; | ||||
101 | argumentList << QVariant::fromValue(appname); | ||||
102 | return asyncCallWithArgumentList(QStringLiteral("CreateICv2"), argumentList); | ||||
103 | } | ||||
104 | inline QDBusReply<int> CreateICv2(const QString &appname, bool &enable, uint &keyval1, uint &state1, uint &keyval2, uint &state2) | ||||
105 | { | ||||
106 | QList<QVariant> argumentList; | ||||
107 | argumentList << QVariant::fromValue(appname); | ||||
108 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateICv2"), argumentList); | ||||
109 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { | ||||
110 | enable = qdbus_cast<bool>(reply.arguments().at(1)); | ||||
111 | keyval1 = qdbus_cast<uint>(reply.arguments().at(2)); | ||||
112 | state1 = qdbus_cast<uint>(reply.arguments().at(3)); | ||||
113 | keyval2 = qdbus_cast<uint>(reply.arguments().at(4)); | ||||
114 | state2 = qdbus_cast<uint>(reply.arguments().at(5)); | ||||
115 | } | ||||
116 | return reply; | ||||
117 | } | ||||
118 | | ||||
119 | inline QDBusPendingReply<int, bool, uint, uint, uint, uint> CreateICv3(const QString &appname, int pid) | ||||
120 | { | ||||
121 | QList<QVariant> argumentList; | ||||
122 | argumentList << QVariant::fromValue(appname) << QVariant::fromValue(pid); | ||||
123 | return asyncCallWithArgumentList(QStringLiteral("CreateICv3"), argumentList); | ||||
124 | } | ||||
125 | inline QDBusReply<int> CreateICv3(const QString &appname, int pid, bool &enable, uint &keyval1, uint &state1, uint &keyval2, uint &state2) | ||||
126 | { | ||||
127 | QList<QVariant> argumentList; | ||||
128 | argumentList << QVariant::fromValue(appname) << QVariant::fromValue(pid); | ||||
129 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateICv3"), argumentList); | ||||
130 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { | ||||
131 | enable = qdbus_cast<bool>(reply.arguments().at(1)); | ||||
132 | keyval1 = qdbus_cast<uint>(reply.arguments().at(2)); | ||||
133 | state1 = qdbus_cast<uint>(reply.arguments().at(3)); | ||||
134 | keyval2 = qdbus_cast<uint>(reply.arguments().at(4)); | ||||
135 | state2 = qdbus_cast<uint>(reply.arguments().at(5)); | ||||
136 | } | ||||
137 | return reply; | ||||
138 | } | ||||
139 | | ||||
140 | inline QDBusPendingReply<> Exit() | ||||
141 | { | ||||
142 | QList<QVariant> argumentList; | ||||
143 | return asyncCallWithArgumentList(QStringLiteral("Exit"), argumentList); | ||||
144 | } | ||||
145 | | ||||
146 | inline QDBusPendingReply<QString> GetCurrentIM() | ||||
147 | { | ||||
148 | QList<QVariant> argumentList; | ||||
149 | return asyncCallWithArgumentList(QStringLiteral("GetCurrentIM"), argumentList); | ||||
150 | } | ||||
151 | | ||||
152 | inline QDBusPendingReply<int> GetCurrentState() | ||||
153 | { | ||||
154 | QList<QVariant> argumentList; | ||||
155 | return asyncCallWithArgumentList(QStringLiteral("GetCurrentState"), argumentList); | ||||
156 | } | ||||
157 | | ||||
158 | inline QDBusPendingReply<QString> GetCurrentUI() | ||||
159 | { | ||||
160 | QList<QVariant> argumentList; | ||||
161 | return asyncCallWithArgumentList(QStringLiteral("GetCurrentUI"), argumentList); | ||||
162 | } | ||||
163 | | ||||
164 | inline QDBusPendingReply<QString> GetIMAddon(const QString &im) | ||||
165 | { | ||||
166 | QList<QVariant> argumentList; | ||||
167 | argumentList << QVariant::fromValue(im); | ||||
168 | return asyncCallWithArgumentList(QStringLiteral("GetIMAddon"), argumentList); | ||||
169 | } | ||||
170 | | ||||
171 | inline QDBusPendingReply<> InactivateIM() | ||||
172 | { | ||||
173 | QList<QVariant> argumentList; | ||||
174 | return asyncCallWithArgumentList(QStringLiteral("InactivateIM"), argumentList); | ||||
175 | } | ||||
176 | | ||||
177 | inline QDBusPendingReply<> ReloadAddonConfig(const QString &addon) | ||||
178 | { | ||||
179 | QList<QVariant> argumentList; | ||||
180 | argumentList << QVariant::fromValue(addon); | ||||
181 | return asyncCallWithArgumentList(QStringLiteral("ReloadAddonConfig"), argumentList); | ||||
182 | } | ||||
183 | | ||||
184 | inline QDBusPendingReply<> ReloadConfig() | ||||
185 | { | ||||
186 | QList<QVariant> argumentList; | ||||
187 | return asyncCallWithArgumentList(QStringLiteral("ReloadConfig"), argumentList); | ||||
188 | } | ||||
189 | | ||||
190 | inline QDBusPendingReply<> ResetIMList() | ||||
191 | { | ||||
192 | QList<QVariant> argumentList; | ||||
193 | return asyncCallWithArgumentList(QStringLiteral("ResetIMList"), argumentList); | ||||
194 | } | ||||
195 | | ||||
196 | inline QDBusPendingReply<> Restart() | ||||
197 | { | ||||
198 | QList<QVariant> argumentList; | ||||
199 | return asyncCallWithArgumentList(QStringLiteral("Restart"), argumentList); | ||||
200 | } | ||||
201 | | ||||
202 | inline QDBusPendingReply<> SetCurrentIM(const QString &im) | ||||
203 | { | ||||
204 | QList<QVariant> argumentList; | ||||
205 | argumentList << QVariant::fromValue(im); | ||||
206 | return asyncCallWithArgumentList(QStringLiteral("SetCurrentIM"), argumentList); | ||||
207 | } | ||||
208 | | ||||
209 | inline QDBusPendingReply<> ToggleIM() | ||||
210 | { | ||||
211 | QList<QVariant> argumentList; | ||||
212 | return asyncCallWithArgumentList(QStringLiteral("ToggleIM"), argumentList); | ||||
213 | } | ||||
214 | | ||||
215 | Q_SIGNALS: // SIGNALS | ||||
216 | }; | ||||
217 | | ||||
218 | #endif |