Debian Codegraph @

qt6/platforminputcontext/fcitx4inputcontextproxyimpl.h

raw
1 /*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -N -p fcitx4inputcontextproxyimpl -c
4 * Fcitx4InputContextProxyImpl org.fcitx.Fcitx.InputContext.xml
5 * org.fcitx.Fcitx.InputContext
6 *
7 * qdbusxml2cpp is Copyright (C) 2022 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 FCITX4INPUTCONTEXTPROXYIMPL_H
14 #define FCITX4INPUTCONTEXTPROXYIMPL_H
15
16 #include "fcitxqtdbustypes.h"
17 #include <QtCore/QByteArray>
18 #include <QtCore/QList>
19 #include <QtCore/QMap>
20 #include <QtCore/QObject>
21 #include <QtCore/QString>
22 #include <QtCore/QStringList>
23 #include <QtCore/QVariant>
24 #include <QtDBus/QtDBus>
25
26 namespace fcitx {
27 /*
28 * Proxy class for interface org.fcitx.Fcitx.InputContext
29 */
30 class Fcitx4InputContextProxyImpl : public QDBusAbstractInterface {
31 Q_OBJECT
32 public:
33 static inline const char *staticInterfaceName() {
34 return "org.fcitx.Fcitx.InputContext";
35 }
36
37 public:
38 Fcitx4InputContextProxyImpl(const QString &service, const QString &path,
39 const QDBusConnection &connection,
40 QObject *parent = nullptr);
41
42 ~Fcitx4InputContextProxyImpl();
43
44 public Q_SLOTS: // METHODS
45 inline QDBusPendingReply<> DestroyIC() {
46 QList<QVariant> argumentList;
47 return asyncCallWithArgumentList(QStringLiteral("DestroyIC"),
48 argumentList);
49 }
50
51 inline QDBusPendingReply<> FocusIn() {
52 QList<QVariant> argumentList;
53 return asyncCallWithArgumentList(QStringLiteral("FocusIn"),
54 argumentList);
55 }
56
57 inline QDBusPendingReply<> FocusOut() {
58 QList<QVariant> argumentList;
59 return asyncCallWithArgumentList(QStringLiteral("FocusOut"),
60 argumentList);
61 }
62
63 inline QDBusPendingReply<int> ProcessKeyEvent(unsigned int keyval,
64 unsigned int keycode,
65 unsigned int state, int type,
66 unsigned int time) {
67 QList<QVariant> argumentList;
68 argumentList << QVariant::fromValue(keyval)
69 << QVariant::fromValue(keycode)
70 << QVariant::fromValue(state) << QVariant::fromValue(type)
71 << QVariant::fromValue(time);
72 return asyncCallWithArgumentList(QStringLiteral("ProcessKeyEvent"),
73 argumentList);
74 }
75
76 inline QDBusPendingReply<> Reset() {
77 QList<QVariant> argumentList;
78 return asyncCallWithArgumentList(QStringLiteral("Reset"), argumentList);
79 }
80
81 inline QDBusPendingReply<> SetCapacity(unsigned int caps) {
82 QList<QVariant> argumentList;
83 argumentList << QVariant::fromValue(caps);
84 return asyncCallWithArgumentList(QStringLiteral("SetCapacity"),
85 argumentList);
86 }
87
88 inline QDBusPendingReply<> SetCursorRect(int x, int y, int w, int h) {
89 QList<QVariant> argumentList;
90 argumentList << QVariant::fromValue(x) << QVariant::fromValue(y)
91 << QVariant::fromValue(w) << QVariant::fromValue(h);
92 return asyncCallWithArgumentList(QStringLiteral("SetCursorRect"),
93 argumentList);
94 }
95
96 inline QDBusPendingReply<> SetSurroundingText(const QString &text,
97 unsigned int cursor,
98 unsigned int anchor) {
99 QList<QVariant> argumentList;
100 argumentList << QVariant::fromValue(text) << QVariant::fromValue(cursor)
101 << QVariant::fromValue(anchor);
102 return asyncCallWithArgumentList(QStringLiteral("SetSurroundingText"),
103 argumentList);
104 }
105
106 inline QDBusPendingReply<> SetSurroundingTextPosition(unsigned int cursor,
107 unsigned int anchor) {
108 QList<QVariant> argumentList;
109 argumentList << QVariant::fromValue(cursor)
110 << QVariant::fromValue(anchor);
111 return asyncCallWithArgumentList(
112 QStringLiteral("SetSurroundingTextPosition"), argumentList);
113 }
114
115 Q_SIGNALS: // SIGNALS
116 void CommitString(const QString &str);
117 void CurrentIM(const QString &name, const QString &uniqueName,
118 const QString &langCode);
119 void DeleteSurroundingText(int offset, unsigned int nchar);
120 void ForwardKey(unsigned int keyval, unsigned int state, int type);
121 void UpdateFormattedPreedit(FcitxQtFormattedPreeditList str, int cursorpos);
122 };
123
124 } // namespace fcitx
125
126 #endif