1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -N -p qibusproxy -c QIBusProxy interfaces/org.freedesktop.IBus.xml
*
* qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#ifndef QIBUSPROXY_H_1308831142
#define QIBUSPROXY_H_1308831142
#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>
#include "qibustypes.h"
/*
* Proxy class for interface org.freedesktop.IBus
*/
class QIBusProxy: public QDBusAbstractInterface
{
Q_OBJECT
public:
static inline const char *staticInterfaceName()
{ return "org.freedesktop.IBus"; }
static inline QString dbusInterfaceProperties()
{ return QStringLiteral("org.freedesktop.DBus.Properties"); }
public:
QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
~QIBusProxy();
public Q_SLOTS: // METHODS
inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name)
{
QList<QVariant> argumentList;
argumentList << QVariant::fromValue(name);
return asyncCallWithArgumentList(QLatin1String("CreateInputContext"), argumentList);
}
inline QDBusPendingReply<> Exit(bool restart)
{
QList<QVariant> argumentList;
argumentList << QVariant::fromValue(restart);
return asyncCallWithArgumentList(QLatin1String("Exit"), argumentList);
}
inline QDBusPendingReply<QString> GetAddress()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("GetAddress"), argumentList);
}
inline QDBusPendingReply<QVariantList> ListActiveEngines()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("ListActiveEngines"), argumentList);
}
inline QDBusPendingReply<QVariantList> ListEngines()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("ListEngines"), argumentList);
}
inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data)
{
QList<QVariant> argumentList;
argumentList << QVariant::fromValue(data);
return asyncCallWithArgumentList(QLatin1String("Ping"), argumentList);
}
inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components)
{
QList<QVariant> argumentList;
argumentList << QVariant::fromValue(components);
return asyncCallWithArgumentList(QLatin1String("RegisterComponent"), argumentList);
}
inline QDBusPendingReply<QDBusVariant> GetGlobalEngine()
{
if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty())
return QDBusMessage::createError(this->lastError());
QDBusMessage msg = QDBusMessage::createMethodCall(this->service(),
this->path(),
dbusInterfaceProperties(),
QStringLiteral("Get"));
msg << this->interface() << QStringLiteral("GlobalEngine");
return this->connection().asyncCall(msg, this->timeout());
}
QIBusEngineDesc getGlobalEngine();
private:
void globalEngineChanged(const QString &engine_name);
Q_SIGNALS: // SIGNALS
void GlobalEngineChanged(const QString &engine_name);
};
#endif
|