| 1 |
/* |
| 2 |
* This file was generated by qdbusxml2cpp version 0.8 |
| 3 |
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxy -c FcitxQtInputContextProxy interfaces/org.fcitx.Fcitx.InputContext.xml -i fcitxqtformattedpreedit.h -i fcitxqtdbusaddons_export.h |
| 4 |
* |
| 5 |
* qdbusxml2cpp is Copyright (C) 2015 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 FCITXQTINPUTCONTEXTPROXY_H |
| 12 |
#define FCITXQTINPUTCONTEXTPROXY_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 "fcitxqtformattedpreedit.h" |
| 23 |
#include "fcitxqtdbusaddons_export.h" |
| 24 |
|
| 25 |
/* |
| 26 |
* Proxy class for interface org.fcitx.Fcitx.InputContext |
| 27 |
*/ |
| 28 |
class FCITXQTDBUSADDONS_EXPORT FcitxQtInputContextProxy: public QDBusAbstractInterface |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
public: |
| 32 |
static inline const char *staticInterfaceName() |
| 33 |
{ return "org.fcitx.Fcitx.InputContext"; } |
| 34 |
|
| 35 |
public: |
| 36 |
FcitxQtInputContextProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); |
| 37 |
|
| 38 |
~FcitxQtInputContextProxy(); |
| 39 |
|
| 40 |
public Q_SLOTS: // METHODS |
| 41 |
inline QDBusPendingReply<> CloseIC() |
| 42 |
{ |
| 43 |
QList<QVariant> argumentList; |
| 44 |
return asyncCallWithArgumentList(QStringLiteral("CloseIC"), argumentList); |
| 45 |
} |
| 46 |
|
| 47 |
inline QDBusPendingReply<> DestroyIC() |
| 48 |
{ |
| 49 |
QList<QVariant> argumentList; |
| 50 |
return asyncCallWithArgumentList(QStringLiteral("DestroyIC"), argumentList); |
| 51 |
} |
| 52 |
|
| 53 |
inline QDBusPendingReply<> EnableIC() |
| 54 |
{ |
| 55 |
QList<QVariant> argumentList; |
| 56 |
return asyncCallWithArgumentList(QStringLiteral("EnableIC"), argumentList); |
| 57 |
} |
| 58 |
|
| 59 |
inline QDBusPendingReply<> FocusIn() |
| 60 |
{ |
| 61 |
QList<QVariant> argumentList; |
| 62 |
return asyncCallWithArgumentList(QStringLiteral("FocusIn"), argumentList); |
| 63 |
} |
| 64 |
|
| 65 |
inline QDBusPendingReply<> FocusOut() |
| 66 |
{ |
| 67 |
QList<QVariant> argumentList; |
| 68 |
return asyncCallWithArgumentList(QStringLiteral("FocusOut"), argumentList); |
| 69 |
} |
| 70 |
|
| 71 |
inline QDBusPendingReply<> MouseEvent(int x) |
| 72 |
{ |
| 73 |
QList<QVariant> argumentList; |
| 74 |
argumentList << QVariant::fromValue(x); |
| 75 |
return asyncCallWithArgumentList(QStringLiteral("MouseEvent"), argumentList); |
| 76 |
} |
| 77 |
|
| 78 |
inline QDBusPendingReply<int> ProcessKeyEvent(uint keyval, uint keycode, uint state, int type, uint time) |
| 79 |
{ |
| 80 |
QList<QVariant> argumentList; |
| 81 |
argumentList << QVariant::fromValue(keyval) << QVariant::fromValue(keycode) << QVariant::fromValue(state) << QVariant::fromValue(type) << QVariant::fromValue(time); |
| 82 |
return asyncCallWithArgumentList(QStringLiteral("ProcessKeyEvent"), argumentList); |
| 83 |
} |
| 84 |
|
| 85 |
inline QDBusPendingReply<> Reset() |
| 86 |
{ |
| 87 |
QList<QVariant> argumentList; |
| 88 |
return asyncCallWithArgumentList(QStringLiteral("Reset"), argumentList); |
| 89 |
} |
| 90 |
|
| 91 |
inline QDBusPendingReply<> SetCapacity(uint caps) |
| 92 |
{ |
| 93 |
QList<QVariant> argumentList; |
| 94 |
argumentList << QVariant::fromValue(caps); |
| 95 |
return asyncCallWithArgumentList(QStringLiteral("SetCapacity"), argumentList); |
| 96 |
} |
| 97 |
|
| 98 |
inline QDBusPendingReply<> SetCursorLocation(int x, int y) |
| 99 |
{ |
| 100 |
QList<QVariant> argumentList; |
| 101 |
argumentList << QVariant::fromValue(x) << QVariant::fromValue(y); |
| 102 |
return asyncCallWithArgumentList(QStringLiteral("SetCursorLocation"), argumentList); |
| 103 |
} |
| 104 |
|
| 105 |
inline QDBusPendingReply<> SetCursorRect(int x, int y, int w, int h) |
| 106 |
{ |
| 107 |
QList<QVariant> argumentList; |
| 108 |
argumentList << QVariant::fromValue(x) << QVariant::fromValue(y) << QVariant::fromValue(w) << QVariant::fromValue(h); |
| 109 |
return asyncCallWithArgumentList(QStringLiteral("SetCursorRect"), argumentList); |
| 110 |
} |
| 111 |
|
| 112 |
inline QDBusPendingReply<> SetSurroundingText(const QString &text, uint cursor, uint anchor) |
| 113 |
{ |
| 114 |
QList<QVariant> argumentList; |
| 115 |
argumentList << QVariant::fromValue(text) << QVariant::fromValue(cursor) << QVariant::fromValue(anchor); |
| 116 |
return asyncCallWithArgumentList(QStringLiteral("SetSurroundingText"), argumentList); |
| 117 |
} |
| 118 |
|
| 119 |
inline QDBusPendingReply<> SetSurroundingTextPosition(uint cursor, uint anchor) |
| 120 |
{ |
| 121 |
QList<QVariant> argumentList; |
| 122 |
argumentList << QVariant::fromValue(cursor) << QVariant::fromValue(anchor); |
| 123 |
return asyncCallWithArgumentList(QStringLiteral("SetSurroundingTextPosition"), argumentList); |
| 124 |
} |
| 125 |
|
| 126 |
Q_SIGNALS: // SIGNALS |
| 127 |
void CloseIM(); |
| 128 |
void CommitString(const QString &str); |
| 129 |
void CurrentIM(const QString &name, const QString &uniqueName, const QString &langCode); |
| 130 |
void DeleteSurroundingText(int offset, uint nchar); |
| 131 |
void EnableIM(); |
| 132 |
void ForwardKey(uint keyval, uint state, int type); |
| 133 |
void UpdateClientSideUI(const QString &auxup, const QString &auxdown, const QString &preedit, const QString &candidateword, const QString &imname, int cursorpos); |
| 134 |
void UpdateFormattedPreedit(FcitxQtFormattedPreeditList str, int cursorpos); |
| 135 |
}; |
| 136 |
|
| 137 |
#endif |