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