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// Qt-Security score:significant reason:default
11
12#ifndef QIBUSPROXY_H_1308831142
13#define QIBUSPROXY_H_1308831142
14
15#include <QObject>
16#include <QByteArray>
17#include <QList>
18#include <QMap>
19#include <QString>
20#include <QStringList>
21#include <QVariant>
22#include <QDBusAbstractInterface>
23#include <QDBusPendingReply>
24
25#include "qibustypes.h"
26
27/*
28 * Proxy class for interface org.freedesktop.IBus
29 */
30class QIBusProxy: public QDBusAbstractInterface
31{
32 Q_OBJECT
33public:
34 static inline const char *staticInterfaceName()
35 { return "org.freedesktop.IBus"; }
36 static inline QString dbusInterfaceProperties()
37 { return QStringLiteral("org.freedesktop.DBus.Properties"); }
38
39public:
40 QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
41
42 ~QIBusProxy();
43
44public Q_SLOTS: // METHODS
45 inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name)
46 {
47 QList<QVariant> argumentList;
48 argumentList << QVariant::fromValue(name);
49 return asyncCallWithArgumentList(QLatin1String("CreateInputContext"), argumentList);
50 }
51
52 inline QDBusPendingReply<> Exit(bool restart)
53 {
54 QList<QVariant> argumentList;
55 argumentList << QVariant::fromValue(restart);
56 return asyncCallWithArgumentList(QLatin1String("Exit"), argumentList);
57 }
58
59 inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data)
60 {
61 QList<QVariant> argumentList;
62 argumentList << QVariant::fromValue(data);
63 return asyncCallWithArgumentList(QLatin1String("Ping"), argumentList);
64 }
65
66 inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components)
67 {
68 QList<QVariant> argumentList;
69 argumentList << QVariant::fromValue(components);
70 return asyncCallWithArgumentList(QLatin1String("RegisterComponent"), argumentList);
71 }
72
73// Property
74 inline QDBusPendingCall GetProperty(const QString method)
75 {
76 if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty())
77 return QDBusPendingCall::fromError(this->lastError());
78
79 QDBusMessage msg = QDBusMessage::createMethodCall(this->service(),
80 this->path(),
81 dbusInterfaceProperties(),
82 QStringLiteral("Get"));
83 msg << this->interface() << method;
84 return this->connection().asyncCall(msg, this->timeout());
85 }
86
87#ifdef QIBUS_GET_ADDRESS
88 inline QDBusPendingCall Address()
89 {
90 return GetProperty(QStringLiteral("Address"));
91 }
92#endif
93
94#ifdef QIBUS_GET_ENGINES
95 inline QDBusPendingCall Engines()
96 {
97 return GetProperty(QStringLiteral("Engines"));
98 }
99#endif
100
101 inline QDBusPendingCall GlobalEngine()
102 {
103 return GetProperty(QStringLiteral("GlobalEngine"));
104 }
105
106#ifdef QIBUS_GET_ADDRESS
107 QString getAddress();
108#endif
109#ifdef QIBUS_GET_ENGINES
110 QList<QIBusEngineDesc> getEngines();
111#endif
112 QIBusEngineDesc getGlobalEngine();
113
114private Q_SLOTS:
115 void globalEngineChanged(const QString &engine_name);
116
117Q_SIGNALS: // SIGNALS
118 void GlobalEngineChanged(const QString &engine_name);
119};
120
121#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:629
The QInputMethodQueryEvent class provides an event sent by the input context to input objects.
Definition qevent.h:684
The QKeyEvent class describes a key event.
Definition qevent.h:426
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