Debian Codegraph @

qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h

raw
1 /*
2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c
4 * FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i
5 * fcitxqtdbustypes.h -i fcitx5qt4dbusaddons_export.h
6 *
7 * qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd.
8 *
9 * This is an auto-generated file.
10 * Do not edit! All changes made to it will be lost.
11 */
12
13 #ifndef FCITXQTINPUTCONTEXTPROXYIMPL_H_1637715099
14 #define FCITXQTINPUTCONTEXTPROXYIMPL_H_1637715099
15
16 #include "fcitx5qt4dbusaddons_export.h"
17 #include "fcitxqtdbustypes.h"
18 #include <QtCore/QByteArray>
19 #include <QtCore/QList>
20 #include <QtCore/QMap>
21 #include <QtCore/QObject>
22 #include <QtCore/QString>
23 #include <QtCore/QStringList>
24 #include <QtCore/QVariant>
25 #include <QtDBus/QtDBus>
26
27 namespace fcitx {
28
29 /*
30 * Proxy class for interface org.fcitx.Fcitx.InputContext1
31 */
32 class FcitxQtInputContextProxyImpl : public QDBusAbstractInterface {
33 Q_OBJECT
34 public:
35 static inline const char *staticInterfaceName() {
36 return "org.fcitx.Fcitx.InputContext1";
37 }
38
39 public:
40 FcitxQtInputContextProxyImpl(const QString &service, const QString &path,
41 const QDBusConnection &connection,
42 QObject *parent = 0);
43
44 ~FcitxQtInputContextProxyImpl();
45
46 public Q_SLOTS: // METHODS
47 inline QDBusPendingReply<> DestroyIC() {
48 QList<QVariant> argumentList;
49 return asyncCallWithArgumentList(QLatin1String("DestroyIC"),
50 argumentList);
51 }
52
53 inline QDBusPendingReply<> FocusIn() {
54 QList<QVariant> argumentList;
55 return asyncCallWithArgumentList(QLatin1String("FocusIn"),
56 argumentList);
57 }
58
59 inline QDBusPendingReply<> FocusOut() {
60 QList<QVariant> argumentList;
61 return asyncCallWithArgumentList(QLatin1String("FocusOut"),
62 argumentList);
63 }
64
65 inline QDBusPendingReply<> InvokeAction(unsigned int action, int cursor) {
66 QList<QVariant> argumentList;
67 argumentList << QVariant::fromValue(action)
68 << QVariant::fromValue(cursor);
69 return asyncCallWithArgumentList(QLatin1String("InvokeAction"),
70 argumentList);
71 }
72
73 inline QDBusPendingReply<> NextPage() {
74 QList<QVariant> argumentList;
75 return asyncCallWithArgumentList(QLatin1String("NextPage"),
76 argumentList);
77 }
78
79 inline QDBusPendingReply<> PrevPage() {
80 QList<QVariant> argumentList;
81 return asyncCallWithArgumentList(QLatin1String("PrevPage"),
82 argumentList);
83 }
84
85 inline QDBusPendingReply<bool> ProcessKeyEvent(unsigned int keyval, unsigned int keycode,
86 unsigned int state, bool type,
87 unsigned int time) {
88 QList<QVariant> argumentList;
89 argumentList << QVariant::fromValue(keyval)
90 << QVariant::fromValue(keycode)
91 << QVariant::fromValue(state) << QVariant::fromValue(type)
92 << QVariant::fromValue(time);
93 return asyncCallWithArgumentList(QLatin1String("ProcessKeyEvent"),
94 argumentList);
95 }
96
97 inline QDBusPendingReply<> Reset() {
98 QList<QVariant> argumentList;
99 return asyncCallWithArgumentList(QLatin1String("Reset"), argumentList);
100 }
101
102 inline QDBusPendingReply<> SelectCandidate(int index) {
103 QList<QVariant> argumentList;
104 argumentList << QVariant::fromValue(index);
105 return asyncCallWithArgumentList(QLatin1String("SelectCandidate"),
106 argumentList);
107 }
108
109 inline QDBusPendingReply<> SetSupportedCapability(qulonglong caps)
110 {
111 QList<QVariant> argumentList;
112 argumentList << QVariant::fromValue(caps);
113 return asyncCallWithArgumentList(QLatin1String("SetSupportedCapability"), argumentList);
114 }
115
116 inline QDBusPendingReply<> SetCapability(qulonglong caps) {
117 QList<QVariant> argumentList;
118 argumentList << QVariant::fromValue(caps);
119 return asyncCallWithArgumentList(QLatin1String("SetCapability"),
120 argumentList);
121 }
122
123 inline QDBusPendingReply<> SetCursorRect(int x, int y, int w, int h) {
124 QList<QVariant> argumentList;
125 argumentList << QVariant::fromValue(x) << QVariant::fromValue(y)
126 << QVariant::fromValue(w) << QVariant::fromValue(h);
127 return asyncCallWithArgumentList(QLatin1String("SetCursorRect"),
128 argumentList);
129 }
130
131 inline QDBusPendingReply<> SetCursorRectV2(int x, int y, int w, int h,
132 double scale) {
133 QList<QVariant> argumentList;
134 argumentList << QVariant::fromValue(x) << QVariant::fromValue(y)
135 << QVariant::fromValue(w) << QVariant::fromValue(h)
136 << QVariant::fromValue(scale);
137 return asyncCallWithArgumentList(QLatin1String("SetCursorRectV2"),
138 argumentList);
139 }
140
141 inline QDBusPendingReply<> SetSurroundingText(const QString &text,
142 unsigned int cursor, unsigned int anchor) {
143 QList<QVariant> argumentList;
144 argumentList << QVariant::fromValue(text) << QVariant::fromValue(cursor)
145 << QVariant::fromValue(anchor);
146 return asyncCallWithArgumentList(QLatin1String("SetSurroundingText"),
147 argumentList);
148 }
149
150 inline QDBusPendingReply<> SetSurroundingTextPosition(unsigned int cursor,
151 unsigned int anchor) {
152 QList<QVariant> argumentList;
153 argumentList << QVariant::fromValue(cursor)
154 << QVariant::fromValue(anchor);
155 return asyncCallWithArgumentList(
156 QLatin1String("SetSurroundingTextPosition"), argumentList);
157 }
158
159 Q_SIGNALS: // SIGNALS
160 void CommitString(const QString &str);
161 void CurrentIM(const QString &name, const QString &uniqueName,
162 const QString &langCode);
163 void DeleteSurroundingText(int offset, unsigned int nchar);
164 void ForwardKey(unsigned int keyval, unsigned int state, bool type);
165 void NotifyFocusOut();
166 void UpdateClientSideUI(FcitxQtFormattedPreeditList preedit, int cursorpos,
167 FcitxQtFormattedPreeditList auxUp,
168 FcitxQtFormattedPreeditList auxDown,
169 FcitxQtFormattedPreeditList candidates,
170 int candidateIndex, int layoutHint, bool hasPrev,
171 bool hasNext);
172 void UpdateFormattedPreedit(FcitxQtFormattedPreeditList str, int cursorpos);
173 };
174 } // namespace fcitx
175
176 #endif