| 1 |
/* |
| 2 |
* This file was generated by qdbusxml2cpp version 0.8 |
| 3 |
* Command line was: qdbusxml2cpp -N -p fcitx4inputmethodproxy -c |
| 4 |
* Fcitx4InputMethodProxy org.fcitx.Fcitx.InputMethod.xml |
| 5 |
* org.fcitx.Fcitx.InputMethod |
| 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 FCITX4INPUTMETHODPROXY_H |
| 14 |
#define FCITX4INPUTMETHODPROXY_H |
| 15 |
|
| 16 |
#include <QtCore/QByteArray> |
| 17 |
#include <QtCore/QList> |
| 18 |
#include <QtCore/QMap> |
| 19 |
#include <QtCore/QObject> |
| 20 |
#include <QtCore/QString> |
| 21 |
#include <QtCore/QStringList> |
| 22 |
#include <QtCore/QVariant> |
| 23 |
#include <QtDBus/QtDBus> |
| 24 |
|
| 25 |
namespace fcitx { |
| 26 |
|
| 27 |
/* |
| 28 |
* Proxy class for interface org.fcitx.Fcitx.InputMethod |
| 29 |
*/ |
| 30 |
class Fcitx4InputMethodProxy : public QDBusAbstractInterface { |
| 31 |
Q_OBJECT |
| 32 |
public: |
| 33 |
static inline const char *staticInterfaceName() { |
| 34 |
return "org.fcitx.Fcitx.InputMethod"; |
| 35 |
} |
| 36 |
|
| 37 |
public: |
| 38 |
Fcitx4InputMethodProxy(const QString &service, const QString &path, |
| 39 |
const QDBusConnection &connection, |
| 40 |
QObject *parent = nullptr); |
| 41 |
|
| 42 |
~Fcitx4InputMethodProxy(); |
| 43 |
|
| 44 |
public Q_SLOTS: // METHODS |
| 45 |
inline QDBusPendingReply<int, bool, unsigned int, unsigned int, |
| 46 |
unsigned int, unsigned int> |
| 47 |
CreateICv3(const QString &appname, int pid) { |
| 48 |
QList<QVariant> argumentList; |
| 49 |
argumentList << QVariant::fromValue(appname) |
| 50 |
<< QVariant::fromValue(pid); |
| 51 |
return asyncCallWithArgumentList(QStringLiteral("CreateICv3"), |
| 52 |
argumentList); |
| 53 |
} |
| 54 |
inline QDBusReply<int> CreateICv3(const QString &appname, int pid, |
| 55 |
bool &enable, unsigned int &keyval1, |
| 56 |
unsigned int &state1, |
| 57 |
unsigned int &keyval2, |
| 58 |
unsigned int &state2) { |
| 59 |
QList<QVariant> argumentList; |
| 60 |
argumentList << QVariant::fromValue(appname) |
| 61 |
<< QVariant::fromValue(pid); |
| 62 |
QDBusMessage reply = callWithArgumentList( |
| 63 |
QDBus::Block, QStringLiteral("CreateICv3"), argumentList); |
| 64 |
if (reply.type() == QDBusMessage::ReplyMessage && |
| 65 |
reply.arguments().count() == 6) { |
| 66 |
enable = qdbus_cast<bool>(reply.arguments().at(1)); |
| 67 |
keyval1 = qdbus_cast<unsigned int>(reply.arguments().at(2)); |
| 68 |
state1 = qdbus_cast<unsigned int>(reply.arguments().at(3)); |
| 69 |
keyval2 = qdbus_cast<unsigned int>(reply.arguments().at(4)); |
| 70 |
state2 = qdbus_cast<unsigned int>(reply.arguments().at(5)); |
| 71 |
} |
| 72 |
return reply; |
| 73 |
} |
| 74 |
|
| 75 |
Q_SIGNALS: // SIGNALS |
| 76 |
}; |
| 77 |
|
| 78 |
} // namespace fcitx |
| 79 |
|
| 80 |
#endif |