| 1 |
/* |
| 2 |
* This file was generated by qdbusxml2cpp version 0.8 |
| 3 |
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod.xml -i fcitxqtinputmethoditem.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 FCITXQTINPUTMETHODPROXY_H |
| 12 |
#define FCITXQTINPUTMETHODPROXY_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 "fcitxqtinputmethoditem.h" |
| 23 |
#include "fcitxqtdbusaddons_export.h" |
| 24 |
|
| 25 |
/* |
| 26 |
* Proxy class for interface org.fcitx.Fcitx.InputMethod |
| 27 |
*/ |
| 28 |
class FCITXQTDBUSADDONS_EXPORT FcitxQtInputMethodProxy: public QDBusAbstractInterface |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
public: |
| 32 |
static inline const char *staticInterfaceName() |
| 33 |
{ return "org.fcitx.Fcitx.InputMethod"; } |
| 34 |
|
| 35 |
public: |
| 36 |
FcitxQtInputMethodProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); |
| 37 |
|
| 38 |
~FcitxQtInputMethodProxy(); |
| 39 |
|
| 40 |
Q_PROPERTY(QString CurrentIM READ currentIM WRITE setCurrentIM) |
| 41 |
inline QString currentIM() const |
| 42 |
{ return qvariant_cast< QString >(property("CurrentIM")); } |
| 43 |
inline void setCurrentIM(const QString &value) |
| 44 |
{ setProperty("CurrentIM", QVariant::fromValue(value)); } |
| 45 |
|
| 46 |
Q_PROPERTY(FcitxQtInputMethodItemList IMList READ iMList WRITE setIMList) |
| 47 |
inline FcitxQtInputMethodItemList iMList() const |
| 48 |
{ return qvariant_cast< FcitxQtInputMethodItemList >(property("IMList")); } |
| 49 |
inline void setIMList(FcitxQtInputMethodItemList value) |
| 50 |
{ setProperty("IMList", QVariant::fromValue(value)); } |
| 51 |
|
| 52 |
public Q_SLOTS: // METHODS |
| 53 |
inline QDBusPendingReply<> ActivateIM() |
| 54 |
{ |
| 55 |
QList<QVariant> argumentList; |
| 56 |
return asyncCallWithArgumentList(QStringLiteral("ActivateIM"), argumentList); |
| 57 |
} |
| 58 |
|
| 59 |
inline QDBusPendingReply<> Configure() |
| 60 |
{ |
| 61 |
QList<QVariant> argumentList; |
| 62 |
return asyncCallWithArgumentList(QStringLiteral("Configure"), argumentList); |
| 63 |
} |
| 64 |
|
| 65 |
inline QDBusPendingReply<> ConfigureAddon(const QString &addon) |
| 66 |
{ |
| 67 |
QList<QVariant> argumentList; |
| 68 |
argumentList << QVariant::fromValue(addon); |
| 69 |
return asyncCallWithArgumentList(QStringLiteral("ConfigureAddon"), argumentList); |
| 70 |
} |
| 71 |
|
| 72 |
inline QDBusPendingReply<> ConfigureIM(const QString &im) |
| 73 |
{ |
| 74 |
QList<QVariant> argumentList; |
| 75 |
argumentList << QVariant::fromValue(im); |
| 76 |
return asyncCallWithArgumentList(QStringLiteral("ConfigureIM"), argumentList); |
| 77 |
} |
| 78 |
|
| 79 |
inline QDBusPendingReply<int, uint, uint, uint, uint> CreateIC() |
| 80 |
{ |
| 81 |
QList<QVariant> argumentList; |
| 82 |
return asyncCallWithArgumentList(QStringLiteral("CreateIC"), argumentList); |
| 83 |
} |
| 84 |
inline QDBusReply<int> CreateIC(uint &keyval1, uint &state1, uint &keyval2, uint &state2) |
| 85 |
{ |
| 86 |
QList<QVariant> argumentList; |
| 87 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateIC"), argumentList); |
| 88 |
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 5) { |
| 89 |
keyval1 = qdbus_cast<uint>(reply.arguments().at(1)); |
| 90 |
state1 = qdbus_cast<uint>(reply.arguments().at(2)); |
| 91 |
keyval2 = qdbus_cast<uint>(reply.arguments().at(3)); |
| 92 |
state2 = qdbus_cast<uint>(reply.arguments().at(4)); |
| 93 |
} |
| 94 |
return reply; |
| 95 |
} |
| 96 |
|
| 97 |
inline QDBusPendingReply<int, bool, uint, uint, uint, uint> CreateICv2(const QString &appname) |
| 98 |
{ |
| 99 |
QList<QVariant> argumentList; |
| 100 |
argumentList << QVariant::fromValue(appname); |
| 101 |
return asyncCallWithArgumentList(QStringLiteral("CreateICv2"), argumentList); |
| 102 |
} |
| 103 |
inline QDBusReply<int> CreateICv2(const QString &appname, bool &enable, uint &keyval1, uint &state1, uint &keyval2, uint &state2) |
| 104 |
{ |
| 105 |
QList<QVariant> argumentList; |
| 106 |
argumentList << QVariant::fromValue(appname); |
| 107 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateICv2"), argumentList); |
| 108 |
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { |
| 109 |
enable = qdbus_cast<bool>(reply.arguments().at(1)); |
| 110 |
keyval1 = qdbus_cast<uint>(reply.arguments().at(2)); |
| 111 |
state1 = qdbus_cast<uint>(reply.arguments().at(3)); |
| 112 |
keyval2 = qdbus_cast<uint>(reply.arguments().at(4)); |
| 113 |
state2 = qdbus_cast<uint>(reply.arguments().at(5)); |
| 114 |
} |
| 115 |
return reply; |
| 116 |
} |
| 117 |
|
| 118 |
inline QDBusPendingReply<int, bool, uint, uint, uint, uint> CreateICv3(const QString &appname, int pid) |
| 119 |
{ |
| 120 |
QList<QVariant> argumentList; |
| 121 |
argumentList << QVariant::fromValue(appname) << QVariant::fromValue(pid); |
| 122 |
return asyncCallWithArgumentList(QStringLiteral("CreateICv3"), argumentList); |
| 123 |
} |
| 124 |
inline QDBusReply<int> CreateICv3(const QString &appname, int pid, bool &enable, uint &keyval1, uint &state1, uint &keyval2, uint &state2) |
| 125 |
{ |
| 126 |
QList<QVariant> argumentList; |
| 127 |
argumentList << QVariant::fromValue(appname) << QVariant::fromValue(pid); |
| 128 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateICv3"), argumentList); |
| 129 |
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { |
| 130 |
enable = qdbus_cast<bool>(reply.arguments().at(1)); |
| 131 |
keyval1 = qdbus_cast<uint>(reply.arguments().at(2)); |
| 132 |
state1 = qdbus_cast<uint>(reply.arguments().at(3)); |
| 133 |
keyval2 = qdbus_cast<uint>(reply.arguments().at(4)); |
| 134 |
state2 = qdbus_cast<uint>(reply.arguments().at(5)); |
| 135 |
} |
| 136 |
return reply; |
| 137 |
} |
| 138 |
|
| 139 |
inline QDBusPendingReply<> Exit() |
| 140 |
{ |
| 141 |
QList<QVariant> argumentList; |
| 142 |
return asyncCallWithArgumentList(QStringLiteral("Exit"), argumentList); |
| 143 |
} |
| 144 |
|
| 145 |
inline QDBusPendingReply<QString> GetCurrentIM() |
| 146 |
{ |
| 147 |
QList<QVariant> argumentList; |
| 148 |
return asyncCallWithArgumentList(QStringLiteral("GetCurrentIM"), argumentList); |
| 149 |
} |
| 150 |
|
| 151 |
inline QDBusPendingReply<int> GetCurrentState() |
| 152 |
{ |
| 153 |
QList<QVariant> argumentList; |
| 154 |
return asyncCallWithArgumentList(QStringLiteral("GetCurrentState"), argumentList); |
| 155 |
} |
| 156 |
|
| 157 |
inline QDBusPendingReply<QString> GetCurrentUI() |
| 158 |
{ |
| 159 |
QList<QVariant> argumentList; |
| 160 |
return asyncCallWithArgumentList(QStringLiteral("GetCurrentUI"), argumentList); |
| 161 |
} |
| 162 |
|
| 163 |
inline QDBusPendingReply<QString> GetIMAddon(const QString &im) |
| 164 |
{ |
| 165 |
QList<QVariant> argumentList; |
| 166 |
argumentList << QVariant::fromValue(im); |
| 167 |
return asyncCallWithArgumentList(QStringLiteral("GetIMAddon"), argumentList); |
| 168 |
} |
| 169 |
|
| 170 |
inline QDBusPendingReply<> InactivateIM() |
| 171 |
{ |
| 172 |
QList<QVariant> argumentList; |
| 173 |
return asyncCallWithArgumentList(QStringLiteral("InactivateIM"), argumentList); |
| 174 |
} |
| 175 |
|
| 176 |
inline QDBusPendingReply<> ReloadAddonConfig(const QString &addon) |
| 177 |
{ |
| 178 |
QList<QVariant> argumentList; |
| 179 |
argumentList << QVariant::fromValue(addon); |
| 180 |
return asyncCallWithArgumentList(QStringLiteral("ReloadAddonConfig"), argumentList); |
| 181 |
} |
| 182 |
|
| 183 |
inline QDBusPendingReply<> ReloadConfig() |
| 184 |
{ |
| 185 |
QList<QVariant> argumentList; |
| 186 |
return asyncCallWithArgumentList(QStringLiteral("ReloadConfig"), argumentList); |
| 187 |
} |
| 188 |
|
| 189 |
inline QDBusPendingReply<> ResetIMList() |
| 190 |
{ |
| 191 |
QList<QVariant> argumentList; |
| 192 |
return asyncCallWithArgumentList(QStringLiteral("ResetIMList"), argumentList); |
| 193 |
} |
| 194 |
|
| 195 |
inline QDBusPendingReply<> Restart() |
| 196 |
{ |
| 197 |
QList<QVariant> argumentList; |
| 198 |
return asyncCallWithArgumentList(QStringLiteral("Restart"), argumentList); |
| 199 |
} |
| 200 |
|
| 201 |
inline QDBusPendingReply<> SetCurrentIM(const QString &im) |
| 202 |
{ |
| 203 |
QList<QVariant> argumentList; |
| 204 |
argumentList << QVariant::fromValue(im); |
| 205 |
return asyncCallWithArgumentList(QStringLiteral("SetCurrentIM"), argumentList); |
| 206 |
} |
| 207 |
|
| 208 |
inline QDBusPendingReply<> ToggleIM() |
| 209 |
{ |
| 210 |
QList<QVariant> argumentList; |
| 211 |
return asyncCallWithArgumentList(QStringLiteral("ToggleIM"), argumentList); |
| 212 |
} |
| 213 |
|
| 214 |
Q_SIGNALS: // SIGNALS |
| 215 |
}; |
| 216 |
|
| 217 |
#endif |