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
28
29/*
30 * Proxy class for interface org.freedesktop.IBus
31 */
32class QIBusProxy: public QDBusAbstractInterface
33{
34 Q_OBJECT
35public:
36 static inline const char *staticInterfaceName()
37 { return "org.freedesktop.IBus"; }
38 static inline QString dbusInterfaceProperties()
39 { return QStringLiteral("org.freedesktop.DBus.Properties"); }
40
41public:
42 QIBusProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
43
44 ~QIBusProxy();
45
46public Q_SLOTS: // METHODS
47 inline QDBusPendingReply<QDBusObjectPath> CreateInputContext(const QString &name)
48 {
49 QList<QVariant> argumentList;
50 argumentList << QVariant::fromValue(name);
51 return asyncCallWithArgumentList(QLatin1String("CreateInputContext"), argumentList);
52 }
53
54 inline QDBusPendingReply<> Exit(bool restart)
55 {
56 QList<QVariant> argumentList;
57 argumentList << QVariant::fromValue(restart);
58 return asyncCallWithArgumentList(QLatin1String("Exit"), argumentList);
59 }
60
61 inline QDBusPendingReply<QDBusVariant> Ping(const QDBusVariant &data)
62 {
63 QList<QVariant> argumentList;
64 argumentList << QVariant::fromValue(data);
65 return asyncCallWithArgumentList(QLatin1String("Ping"), argumentList);
66 }
67
68 inline QDBusPendingReply<> RegisterComponent(const QDBusVariant &components)
69 {
70 QList<QVariant> argumentList;
71 argumentList << QVariant::fromValue(components);
72 return asyncCallWithArgumentList(QLatin1String("RegisterComponent"), argumentList);
73 }
74
75// Property
76 inline QDBusPendingCall GetProperty(const QString method)
77 {
78 if (!this->isValid() || this->service().isEmpty() || this->path().isEmpty())
79 return QDBusPendingCall::fromError(this->lastError());
80
81 QDBusMessage msg = QDBusMessage::createMethodCall(this->service(),
82 this->path(),
83 dbusInterfaceProperties(),
84 QStringLiteral("Get"));
85 msg << this->interface() << method;
86 return this->connection().asyncCall(msg, this->timeout());
87 }
88
89#ifdef QIBUS_GET_ADDRESS
90 inline QDBusPendingCall Address()
91 {
92 return GetProperty(QStringLiteral("Address"));
93 }
94#endif
95
96#ifdef QIBUS_GET_ENGINES
97 inline QDBusPendingCall Engines()
98 {
99 return GetProperty(QStringLiteral("Engines"));
100 }
101#endif
102
103 inline QDBusPendingCall GlobalEngine()
104 {
105 return GetProperty(QStringLiteral("GlobalEngine"));
106 }
107
108#ifdef QIBUS_GET_ADDRESS
109 QString getAddress();
110#endif
111#ifdef QIBUS_GET_ENGINES
112 QList<QIBusEngineDesc> getEngines();
113#endif
114 QIBusEngineDesc getGlobalEngine();
115
116private Q_SLOTS:
117 void globalEngineChanged(const QString &engine_name);
118
119Q_SIGNALS: // SIGNALS
120 void GlobalEngineChanged(const QString &engine_name);
121};
122
123QT_END_NAMESPACE
124
125#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
Combined button and popup list for selecting options.
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