Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qspiapplicationadaptor_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef Q_SPI_APPLICATION_H
5#define Q_SPI_APPLICATION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtCore/QPointer>
20#include <QtCore/QQueue>
21#include <QtDBus/QDBusConnection>
22#include <QtGui/QAccessibleInterface>
24
25QT_REQUIRE_CONFIG(accessibility);
26
28
29/*
30 * Used for the root object.
31 *
32 * Uses the root object reference and reports its parent as the desktop object.
33 */
35{
37
38public:
41 void sendEvents(bool active);
42
44 void windowActivated(QObject* window, bool active);
45
46protected:
47 bool eventFilter(QObject *obj, QEvent *event) override;
48
49private Q_SLOTS:
50 void notifyKeyboardListenerCallback(const QDBusMessage& message);
51 void notifyKeyboardListenerError(const QDBusError& error, const QDBusMessage& message);
52
53private:
54 static QKeyEvent* copyKeyEvent(QKeyEvent*);
55
56 QQueue<QPair<QPointer<QObject>, QKeyEvent*> > keyEvents;
57 QDBusConnection dbusConnection;
58};
59
61
62#endif
\inmodule QtDBus
\inmodule QtDBus
Definition qdbuserror.h:21
\inmodule QtDBus
\inmodule QtCore
Definition qcoreevent.h:45
The QKeyEvent class describes a key event.
Definition qevent.h:424
\inmodule QtCore
Definition qobject.h:103
QSpiApplicationAdaptor(const QDBusConnection &connection, QObject *parent)
bool eventFilter(QObject *obj, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void sendEvents(bool active)
void windowActivated(QObject *window, bool active)
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
DBusConnection * connection
GLuint GLsizei const GLchar * message
struct _cl_event * event
GLhandleARB obj
[2]
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS
#define Q_MOC_INCLUDE(...)
#define Q_SIGNALS
aWidget window() -> setWindowTitle("New Window Title")
[2]