1 | /* |
---|---|
2 | * This file was generated by qdbusxml2cpp version 0.8 |
3 | * Command line was: qdbusxml2cpp -N -p qibusinputcontextproxy -c QIBusInputContextProxy interfaces/org.freedesktop.IBus.InputContext.xml |
4 | * |
5 | * qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors. |
6 | * |
7 | * This is an auto-generated file. |
8 | * Do not edit! All changes made to it will be lost. |
9 | */ |
10 | |
11 | #ifndef QIBUSINPUTCONTEXTPROXY_H |
12 | #define QIBUSINPUTCONTEXTPROXY_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 | |
23 | // Added for QIBusPropTypeClientCommitPreedit and QIBusPropTypeContentType |
24 | #include "qibustypes.h" |
25 | |
26 | /* |
27 | * Proxy class for interface org.freedesktop.IBus.InputContext |
28 | */ |
29 | class QIBusInputContextProxy: public QDBusAbstractInterface |
30 | { |
31 | Q_OBJECT |
32 | public: |
33 | static inline const char *staticInterfaceName() |
34 | { return "org.freedesktop.IBus.InputContext"; } |
35 | |
36 | public: |
37 | QIBusInputContextProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
38 | |
39 | ~QIBusInputContextProxy(); |
40 | |
41 | Q_PROPERTY(QIBusPropTypeClientCommitPreedit ClientCommitPreedit READ clientCommitPreedit WRITE setClientCommitPreedit) |
42 | inline QIBusPropTypeClientCommitPreedit clientCommitPreedit() const |
43 | { return qvariant_cast< QIBusPropTypeClientCommitPreedit >(v: property(name: "ClientCommitPreedit")); } |
44 | inline void setClientCommitPreedit(const QIBusPropTypeClientCommitPreedit &value) |
45 | { setProperty(name: "ClientCommitPreedit", value: QVariant::fromValue(value)); } |
46 | |
47 | Q_PROPERTY(QIBusPropTypeContentType ContentType READ contentType WRITE setContentType) |
48 | inline QIBusPropTypeContentType contentType() const |
49 | { return qvariant_cast< QIBusPropTypeContentType >(v: property(name: "ContentType")); } |
50 | inline void setContentType(const QIBusPropTypeContentType &value) |
51 | { setProperty(name: "ContentType", value: QVariant::fromValue(value)); } |
52 | |
53 | public Q_SLOTS: // METHODS |
54 | inline QDBusPendingReply<> Destroy() |
55 | { |
56 | QList<QVariant> argumentList; |
57 | return asyncCallWithArgumentList(QStringLiteral("Destroy"), args: argumentList); |
58 | } |
59 | |
60 | inline QDBusPendingReply<> Disable() |
61 | { |
62 | QList<QVariant> argumentList; |
63 | return asyncCallWithArgumentList(QStringLiteral("Disable"), args: argumentList); |
64 | } |
65 | |
66 | inline QDBusPendingReply<> Enable() |
67 | { |
68 | QList<QVariant> argumentList; |
69 | return asyncCallWithArgumentList(QStringLiteral("Enable"), args: argumentList); |
70 | } |
71 | |
72 | inline QDBusPendingReply<> FocusIn() |
73 | { |
74 | QList<QVariant> argumentList; |
75 | return asyncCallWithArgumentList(QStringLiteral("FocusIn"), args: argumentList); |
76 | } |
77 | |
78 | inline QDBusPendingReply<> FocusOut() |
79 | { |
80 | QList<QVariant> argumentList; |
81 | return asyncCallWithArgumentList(QStringLiteral("FocusOut"), args: argumentList); |
82 | } |
83 | |
84 | inline QDBusPendingReply<QDBusVariant> GetEngine() |
85 | { |
86 | QList<QVariant> argumentList; |
87 | return asyncCallWithArgumentList(QStringLiteral("GetEngine"), args: argumentList); |
88 | } |
89 | |
90 | inline QDBusPendingReply<bool> IsEnabled() |
91 | { |
92 | QList<QVariant> argumentList; |
93 | return asyncCallWithArgumentList(QStringLiteral("IsEnabled"), args: argumentList); |
94 | } |
95 | |
96 | inline QDBusPendingReply<bool> ProcessKeyEvent(uint keyval, uint keycode, uint state) |
97 | { |
98 | QList<QVariant> argumentList; |
99 | argumentList << QVariant::fromValue(value: keyval) << QVariant::fromValue(value: keycode) << QVariant::fromValue(value: state); |
100 | return asyncCallWithArgumentList(QStringLiteral("ProcessKeyEvent"), args: argumentList); |
101 | } |
102 | |
103 | inline QDBusPendingReply<> PropertyActivate(const QString &name, int state) |
104 | { |
105 | QList<QVariant> argumentList; |
106 | argumentList << QVariant::fromValue(value: name) << QVariant::fromValue(value: state); |
107 | return asyncCallWithArgumentList(QStringLiteral("PropertyActivate"), args: argumentList); |
108 | } |
109 | |
110 | inline QDBusPendingReply<> Reset() |
111 | { |
112 | QList<QVariant> argumentList; |
113 | return asyncCallWithArgumentList(QStringLiteral("Reset"), args: argumentList); |
114 | } |
115 | |
116 | inline QDBusPendingReply<> SetCapabilities(uint caps) |
117 | { |
118 | QList<QVariant> argumentList; |
119 | argumentList << QVariant::fromValue(value: caps); |
120 | return asyncCallWithArgumentList(QStringLiteral("SetCapabilities"), args: argumentList); |
121 | } |
122 | |
123 | inline QDBusPendingReply<> SetCursorLocation(int x, int y, int w, int h) |
124 | { |
125 | QList<QVariant> argumentList; |
126 | argumentList << QVariant::fromValue(value: x) << QVariant::fromValue(value: y) << QVariant::fromValue(value: w) << QVariant::fromValue(value: h); |
127 | return asyncCallWithArgumentList(QStringLiteral("SetCursorLocation"), args: argumentList); |
128 | } |
129 | |
130 | inline QDBusPendingReply<> SetCursorLocationRelative(int x, int y, int w, int h) |
131 | { |
132 | QList<QVariant> argumentList; |
133 | argumentList << QVariant::fromValue(value: x) << QVariant::fromValue(value: y) << QVariant::fromValue(value: w) << QVariant::fromValue(value: h); |
134 | return asyncCallWithArgumentList(QStringLiteral("SetCursorLocationRelative"), args: argumentList); |
135 | } |
136 | |
137 | inline QDBusPendingReply<> SetEngine(const QString &name) |
138 | { |
139 | QList<QVariant> argumentList; |
140 | argumentList << QVariant::fromValue(value: name); |
141 | return asyncCallWithArgumentList(QStringLiteral("SetEngine"), args: argumentList); |
142 | } |
143 | |
144 | inline QDBusPendingReply<> SetSurroundingText(const QDBusVariant &text, uint cursor_pos, uint anchor_pos) |
145 | { |
146 | QList<QVariant> argumentList; |
147 | argumentList << QVariant::fromValue(value: text) << QVariant::fromValue(value: cursor_pos) << QVariant::fromValue(value: anchor_pos); |
148 | return asyncCallWithArgumentList(QStringLiteral("SetSurroundingText"), args: argumentList); |
149 | } |
150 | |
151 | Q_SIGNALS: // SIGNALS |
152 | void CommitText(const QDBusVariant &text); |
153 | void CursorDownLookupTable(); |
154 | void CursorUpLookupTable(); |
155 | void DeleteSurroundingText(int offset, uint n_chars); |
156 | void Disabled(); |
157 | void Enabled(); |
158 | void ForwardKeyEvent(uint keyval, uint keycode, uint state); |
159 | void HideAuxiliaryText(); |
160 | void HideLookupTable(); |
161 | void HidePreeditText(); |
162 | void PageDownLookupTable(); |
163 | void PageUpLookupTable(); |
164 | void RegisterProperties(const QDBusVariant &props); |
165 | void RequireSurroundingText(); |
166 | void ShowAuxiliaryText(); |
167 | void ShowLookupTable(); |
168 | void ShowPreeditText(); |
169 | void UpdateAuxiliaryText(const QDBusVariant &text, bool visible); |
170 | void UpdateLookupTable(const QDBusVariant &table, bool visible); |
171 | void UpdatePreeditText(const QDBusVariant &text, uint cursor_pos, bool visible); |
172 | void UpdatePreeditTextWithMode(const QDBusVariant &text, uint cursor_pos, bool visible, uint mode); |
173 | void UpdateProperty(const QDBusVariant &prop); |
174 | }; |
175 | |
176 | #endif |
177 |
Definitions
Learn Advanced QML with KDAB
Find out more