| 1 |
/* |
| 2 |
* This file was generated by qdbusxml2cpp version 0.8 |
| 3 |
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c |
| 4 |
* FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i |
| 5 |
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h |
| 6 |
* |
| 7 |
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors. |
| 8 |
* |
| 9 |
* This is an auto-generated file. |
| 10 |
* Do not edit! All changes made to it will be lost. |
| 11 |
*/ |
| 12 |
|
| 13 |
#ifndef FCITXQTCONTROLLERPROXY_H |
| 14 |
#define FCITXQTCONTROLLERPROXY_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 "fcitx5qt6dbusaddons_export.h" |
| 26 |
|
| 27 |
namespace fcitx { |
| 28 |
|
| 29 |
/* |
| 30 |
* Proxy class for interface org.fcitx.Fcitx.Controller1 |
| 31 |
*/ |
| 32 |
class FCITX5QT6DBUSADDONS_EXPORT FcitxQtControllerProxy: public QDBusAbstractInterface |
| 33 |
{ |
| 34 |
Q_OBJECT |
| 35 |
public: |
| 36 |
static inline const char *staticInterfaceName() |
| 37 |
{ return "org.fcitx.Fcitx.Controller1"; } |
| 38 |
|
| 39 |
public: |
| 40 |
FcitxQtControllerProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
| 41 |
|
| 42 |
~FcitxQtControllerProxy(); |
| 43 |
|
| 44 |
public Q_SLOTS: // METHODS |
| 45 |
inline QDBusPendingReply<> Activate() |
| 46 |
{ |
| 47 |
QList<QVariant> argumentList; |
| 48 |
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList); |
| 49 |
} |
| 50 |
|
| 51 |
inline QDBusPendingReply<> AddInputMethodGroup(const QString &in0) |
| 52 |
{ |
| 53 |
QList<QVariant> argumentList; |
| 54 |
argumentList << QVariant::fromValue(in0); |
| 55 |
return asyncCallWithArgumentList(QStringLiteral("AddInputMethodGroup"), argumentList); |
| 56 |
} |
| 57 |
|
| 58 |
inline QDBusPendingReply<QString> AddonForIM(const QString &in0) |
| 59 |
{ |
| 60 |
QList<QVariant> argumentList; |
| 61 |
argumentList << QVariant::fromValue(in0); |
| 62 |
return asyncCallWithArgumentList(QStringLiteral("AddonForIM"), argumentList); |
| 63 |
} |
| 64 |
|
| 65 |
inline QDBusPendingReply<FcitxQtInputMethodEntryList> AvailableInputMethods() |
| 66 |
{ |
| 67 |
QList<QVariant> argumentList; |
| 68 |
return asyncCallWithArgumentList(QStringLiteral("AvailableInputMethods"), argumentList); |
| 69 |
} |
| 70 |
|
| 71 |
inline QDBusPendingReply<FcitxQtLayoutInfoList> AvailableKeyboardLayouts() |
| 72 |
{ |
| 73 |
QList<QVariant> argumentList; |
| 74 |
return asyncCallWithArgumentList(QStringLiteral("AvailableKeyboardLayouts"), argumentList); |
| 75 |
} |
| 76 |
|
| 77 |
inline QDBusPendingReply<bool> CanRestart() { |
| 78 |
QList<QVariant> argumentList; |
| 79 |
return asyncCallWithArgumentList(QStringLiteral("CanRestart"), |
| 80 |
argumentList); |
| 81 |
} |
| 82 |
|
| 83 |
inline QDBusPendingReply<bool> CheckUpdate() |
| 84 |
{ |
| 85 |
QList<QVariant> argumentList; |
| 86 |
return asyncCallWithArgumentList(QStringLiteral("CheckUpdate"), argumentList); |
| 87 |
} |
| 88 |
|
| 89 |
inline QDBusPendingReply<> Configure() |
| 90 |
{ |
| 91 |
QList<QVariant> argumentList; |
| 92 |
return asyncCallWithArgumentList(QStringLiteral("Configure"), argumentList); |
| 93 |
} |
| 94 |
|
| 95 |
inline QDBusPendingReply<> ConfigureAddon(const QString &in0) |
| 96 |
{ |
| 97 |
QList<QVariant> argumentList; |
| 98 |
argumentList << QVariant::fromValue(in0); |
| 99 |
return asyncCallWithArgumentList(QStringLiteral("ConfigureAddon"), argumentList); |
| 100 |
} |
| 101 |
|
| 102 |
inline QDBusPendingReply<> ConfigureIM(const QString &in0) |
| 103 |
{ |
| 104 |
QList<QVariant> argumentList; |
| 105 |
argumentList << QVariant::fromValue(in0); |
| 106 |
return asyncCallWithArgumentList(QStringLiteral("ConfigureIM"), argumentList); |
| 107 |
} |
| 108 |
|
| 109 |
inline QDBusPendingReply<QString> CurrentInputMethod() |
| 110 |
{ |
| 111 |
QList<QVariant> argumentList; |
| 112 |
return asyncCallWithArgumentList(QStringLiteral("CurrentInputMethod"), argumentList); |
| 113 |
} |
| 114 |
|
| 115 |
inline QDBusPendingReply<QString> CurrentUI() |
| 116 |
{ |
| 117 |
QList<QVariant> argumentList; |
| 118 |
return asyncCallWithArgumentList(QStringLiteral("CurrentUI"), argumentList); |
| 119 |
} |
| 120 |
|
| 121 |
inline QDBusPendingReply<> Exit() |
| 122 |
{ |
| 123 |
QList<QVariant> argumentList; |
| 124 |
return asyncCallWithArgumentList(QStringLiteral("Exit"), argumentList); |
| 125 |
} |
| 126 |
|
| 127 |
inline QDBusPendingReply<QString, QString, QString, QVariantMap, |
| 128 |
FcitxQtFullInputMethodEntryList> |
| 129 |
FullInputMethodGroupInfo(const QString &in0) { |
| 130 |
QList<QVariant> argumentList; |
| 131 |
argumentList << QVariant::fromValue(in0); |
| 132 |
return asyncCallWithArgumentList( |
| 133 |
QStringLiteral("FullInputMethodGroupInfo"), argumentList); |
| 134 |
} |
| 135 |
inline QDBusReply<QString> FullInputMethodGroupInfo( |
| 136 |
const QString &in0, QString &defaultInputMethod, QString &defaultLayout, |
| 137 |
QVariantMap &properties, |
| 138 |
FcitxQtFullInputMethodEntryList &inputMethodEntryList) { |
| 139 |
QList<QVariant> argumentList; |
| 140 |
argumentList << QVariant::fromValue(in0); |
| 141 |
QDBusMessage reply = callWithArgumentList( |
| 142 |
QDBus::Block, QStringLiteral("FullInputMethodGroupInfo"), |
| 143 |
argumentList); |
| 144 |
if (reply.type() == QDBusMessage::ReplyMessage && |
| 145 |
reply.arguments().size() == 5) { |
| 146 |
defaultInputMethod = qdbus_cast<QString>(reply.arguments().at(1)); |
| 147 |
defaultLayout = qdbus_cast<QString>(reply.arguments().at(2)); |
| 148 |
properties = qdbus_cast<QVariantMap>(reply.arguments().at(3)); |
| 149 |
inputMethodEntryList = qdbus_cast<FcitxQtFullInputMethodEntryList>( |
| 150 |
reply.arguments().at(4)); |
| 151 |
} |
| 152 |
return reply; |
| 153 |
} |
| 154 |
|
| 155 |
inline QDBusPendingReply<FcitxQtAddonInfoList> GetAddons() |
| 156 |
{ |
| 157 |
QList<QVariant> argumentList; |
| 158 |
return asyncCallWithArgumentList(QStringLiteral("GetAddons"), argumentList); |
| 159 |
} |
| 160 |
|
| 161 |
inline QDBusPendingReply<FcitxQtAddonInfoV2List> GetAddonsV2() |
| 162 |
{ |
| 163 |
QList<QVariant> argumentList; |
| 164 |
return asyncCallWithArgumentList(QStringLiteral("GetAddonsV2"), argumentList); |
| 165 |
} |
| 166 |
|
| 167 |
inline QDBusPendingReply<QDBusVariant, FcitxQtConfigTypeList> GetConfig(const QString &in0) |
| 168 |
{ |
| 169 |
QList<QVariant> argumentList; |
| 170 |
argumentList << QVariant::fromValue(in0); |
| 171 |
return asyncCallWithArgumentList(QStringLiteral("GetConfig"), argumentList); |
| 172 |
} |
| 173 |
inline QDBusReply<QDBusVariant> GetConfig(const QString &in0, FcitxQtConfigTypeList &out1) |
| 174 |
{ |
| 175 |
QList<QVariant> argumentList; |
| 176 |
argumentList << QVariant::fromValue(in0); |
| 177 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetConfig"), argumentList); |
| 178 |
if (reply.type() == QDBusMessage::ReplyMessage && |
| 179 |
reply.arguments().size() == 2) { |
| 180 |
out1 = qdbus_cast<FcitxQtConfigTypeList>(reply.arguments().at(1)); |
| 181 |
} |
| 182 |
return reply; |
| 183 |
} |
| 184 |
|
| 185 |
inline QDBusPendingReply<QString, FcitxQtStringKeyValueList> InputMethodGroupInfo(const QString &in0) |
| 186 |
{ |
| 187 |
QList<QVariant> argumentList; |
| 188 |
argumentList << QVariant::fromValue(in0); |
| 189 |
return asyncCallWithArgumentList(QStringLiteral("InputMethodGroupInfo"), argumentList); |
| 190 |
} |
| 191 |
inline QDBusReply<QString> InputMethodGroupInfo(const QString &in0, FcitxQtStringKeyValueList &items) |
| 192 |
{ |
| 193 |
QList<QVariant> argumentList; |
| 194 |
argumentList << QVariant::fromValue(in0); |
| 195 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("InputMethodGroupInfo"), argumentList); |
| 196 |
if (reply.type() == QDBusMessage::ReplyMessage && |
| 197 |
reply.arguments().size() == 2) { |
| 198 |
items = qdbus_cast<FcitxQtStringKeyValueList>(reply.arguments().at(1)); |
| 199 |
} |
| 200 |
return reply; |
| 201 |
} |
| 202 |
|
| 203 |
inline QDBusPendingReply<QStringList> InputMethodGroups() |
| 204 |
{ |
| 205 |
QList<QVariant> argumentList; |
| 206 |
return asyncCallWithArgumentList(QStringLiteral("InputMethodGroups"), argumentList); |
| 207 |
} |
| 208 |
|
| 209 |
inline QDBusPendingReply<> Refresh() |
| 210 |
{ |
| 211 |
QList<QVariant> argumentList; |
| 212 |
return asyncCallWithArgumentList(QStringLiteral("Refresh"), argumentList); |
| 213 |
} |
| 214 |
|
| 215 |
inline QDBusPendingReply<> ReloadAddonConfig(const QString &in0) |
| 216 |
{ |
| 217 |
QList<QVariant> argumentList; |
| 218 |
argumentList << QVariant::fromValue(in0); |
| 219 |
return asyncCallWithArgumentList(QStringLiteral("ReloadAddonConfig"), argumentList); |
| 220 |
} |
| 221 |
|
| 222 |
inline QDBusPendingReply<> ReloadConfig() |
| 223 |
{ |
| 224 |
QList<QVariant> argumentList; |
| 225 |
return asyncCallWithArgumentList(QStringLiteral("ReloadConfig"), argumentList); |
| 226 |
} |
| 227 |
|
| 228 |
inline QDBusPendingReply<> RemoveInputMethodGroup(const QString &in0) |
| 229 |
{ |
| 230 |
QList<QVariant> argumentList; |
| 231 |
argumentList << QVariant::fromValue(in0); |
| 232 |
return asyncCallWithArgumentList(QStringLiteral("RemoveInputMethodGroup"), argumentList); |
| 233 |
} |
| 234 |
|
| 235 |
inline QDBusPendingReply<> ResetIMList() |
| 236 |
{ |
| 237 |
QList<QVariant> argumentList; |
| 238 |
return asyncCallWithArgumentList(QStringLiteral("ResetIMList"), argumentList); |
| 239 |
} |
| 240 |
|
| 241 |
inline QDBusPendingReply<> Restart() |
| 242 |
{ |
| 243 |
QList<QVariant> argumentList; |
| 244 |
return asyncCallWithArgumentList(QStringLiteral("Restart"), argumentList); |
| 245 |
} |
| 246 |
|
| 247 |
inline QDBusPendingReply<> SetAddonsState(FcitxQtAddonStateList in0) |
| 248 |
{ |
| 249 |
QList<QVariant> argumentList; |
| 250 |
argumentList << QVariant::fromValue(in0); |
| 251 |
return asyncCallWithArgumentList(QStringLiteral("SetAddonsState"), argumentList); |
| 252 |
} |
| 253 |
|
| 254 |
inline QDBusPendingReply<> SetConfig(const QString &in0, const QDBusVariant &in1) |
| 255 |
{ |
| 256 |
QList<QVariant> argumentList; |
| 257 |
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1); |
| 258 |
return asyncCallWithArgumentList(QStringLiteral("SetConfig"), argumentList); |
| 259 |
} |
| 260 |
|
| 261 |
inline QDBusPendingReply<> SetCurrentIM(const QString &in0) |
| 262 |
{ |
| 263 |
QList<QVariant> argumentList; |
| 264 |
argumentList << QVariant::fromValue(in0); |
| 265 |
return asyncCallWithArgumentList(QStringLiteral("SetCurrentIM"), argumentList); |
| 266 |
} |
| 267 |
|
| 268 |
inline QDBusPendingReply<> SetInputMethodGroupInfo(const QString &name, const QString &layout, FcitxQtStringKeyValueList entries) |
| 269 |
{ |
| 270 |
QList<QVariant> argumentList; |
| 271 |
argumentList << QVariant::fromValue(name) << QVariant::fromValue(layout) << QVariant::fromValue(entries); |
| 272 |
return asyncCallWithArgumentList(QStringLiteral("SetInputMethodGroupInfo"), argumentList); |
| 273 |
} |
| 274 |
|
| 275 |
inline QDBusPendingReply<int> State() |
| 276 |
{ |
| 277 |
QList<QVariant> argumentList; |
| 278 |
return asyncCallWithArgumentList(QStringLiteral("State"), argumentList); |
| 279 |
} |
| 280 |
|
| 281 |
inline QDBusPendingReply<> Toggle() |
| 282 |
{ |
| 283 |
QList<QVariant> argumentList; |
| 284 |
return asyncCallWithArgumentList(QStringLiteral("Toggle"), argumentList); |
| 285 |
} |
| 286 |
|
| 287 |
Q_SIGNALS: // SIGNALS |
| 288 |
void InputMethodGroupsChanged(); |
| 289 |
}; |
| 290 |
|
| 291 |
} |
| 292 |
|
| 293 |
#endif |