Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qibusproxy.h
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -N -p qibusproxy -c QIBusProxy interfaces/org.freedesktop.IBus.xml
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 QIBUSPROXY_H_1308831142
12#define QIBUSPROXY_H_1308831142
13
14#include <QObject>
15#include <QByteArray>
16#include <QList>
17#include <QMap>
18#include <QString>
19#include <QStringList>
20#include <QVariant>
21#include <QDBusAbstractInterface>
22#include <QDBusPendingReply>
23
24#include "qibustypes.h"
25
26/*
27 * Proxy class for interface org.freedesktop.IBus
28 */
29class QIBusProxy: public QDBusAbstractInterface
30{
31 Q_OBJECT
32public:
33 static inline const char *staticInterfaceName()
34 { return "org.freedesktop.IBus"; }
35 static inline QString dbusInterfaceProperties()
36 { return QStringLiteral("org.freedesktop.DBus.Properties"); }
37
38public:
39 QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
40
41 ~QIBusProxy();
42
43public Q_SLOTS: // METHODS
44 inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name)
45 {
46 QList<QVariant> argumentList;
47 argumentList << QVariant::fromValue(name);
48 return asyncCallWithArgumentList(QLatin1String("CreateInputContext"), argumentList);
49 }
50
51 inline QDBusPendingReply<> Exit(bool restart)
52 {
53 QList<QVariant> argumentList;
54 argumentList << QVariant::fromValue(restart);
55 return asyncCallWithArgumentList(QLatin1String("Exit"), argumentList);
56 }
57
58 inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data)
59 {
60 QList<QVariant> argumentList;
61 argumentList << QVariant::fromValue(data);
62 return asyncCallWithArgumentList(QLatin1String("Ping"), argumentList);
63 }
64
65 inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components)
66 {
67 QList<QVariant> argumentList;
68 argumentList << QVariant::fromValue(components);
69 return asyncCallWithArgumentList(QLatin1String("RegisterComponent"), argumentList);
70 }
71
72// Property
73 inline QDBusPendingCall GetProperty(const QString method)
74 {
75 if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty())
76 return QDBusPendingCall::fromError(this->lastError());
77
78 QDBusMessage msg = QDBusMessage::createMethodCall(this->service(),
79 this->path(),
80 dbusInterfaceProperties(),
81 QStringLiteral("Get"));
82 msg << this->interface() << method;
83 return this->connection().asyncCall(msg, this->timeout());
84 }
85
86#ifdef QIBUS_GET_ADDRESS
87 inline QDBusPendingCall Address()
88 {
89 return GetProperty(QStringLiteral("Address"));
90 }
91#endif
92
93#ifdef QIBUS_GET_ENGINES
94 inline QDBusPendingCall Engines()
95 {
96 return GetProperty(QStringLiteral("Engines"));
97 }
98#endif
99
100 inline QDBusPendingCall GlobalEngine()
101 {
102 return GetProperty(QStringLiteral("GlobalEngine"));
103 }
104
105#ifdef QIBUS_GET_ADDRESS
106 QString getAddress();
107#endif
108#ifdef QIBUS_GET_ENGINES
109 QList<QIBusEngineDesc> getEngines();
110#endif
111 QIBusEngineDesc getGlobalEngine();
112
113private Q_SLOTS:
114 void globalEngineChanged(const QString &engine_name);
115
116Q_SIGNALS: // SIGNALS
117 void GlobalEngineChanged(const QString &engine_name);
118};
119
120#endif
\inmodule QtDBus
std::unique_ptr< QIBusInputContextProxy > context
QList< QInputMethodEvent::Attribute > attributes
std::unique_ptr< QIBusProxyPortal > portalBus
void invokeAction(QInputMethod::Action a, int x) override
Called when the word currently being composed in the input item is tapped by the user.
void busUnregistered(const QString &str)
bool filterEvent(const QEvent *event) override
This function can be reimplemented to filter input events.
void globalEngineChanged(const QString &engine_name)
void filterEventFinished(QDBusPendingCallWatcher *call)
void update(Qt::InputMethodQueries) override
Notification on editor updates.
bool hasCapability(Capability capability) const override
Returns whether the implementation supports capability.
void socketChanged(const QString &str)
bool isValid() const override
Returns input context validity.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
void reset() override
Method to be called when input method needs to be reset.
void busRegistered(const QString &str)
The QInputMethodEvent class provides parameters for input method events.
Definition qevent.h:628
The QInputMethodQueryEvent class provides an event sent by the input context to input objects.
Definition qevent.h:683
The QKeyEvent class describes a key event.
Definition qevent.h:425
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
#define IBUS_MOD1_MASK
#define IBUS_SHIFT_MASK
#define IBUS_META_MASK
static bool shouldConnectIbusPortal()
static bool checkNeedPortalSupport()
#define IBUS_CONTROL_MASK
#define IBUS_RELEASE_MASK