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
qspiaccessiblebridge_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
5#ifndef QSPIACCESSIBLEBRIDGE_H
6#define QSPIACCESSIBLEBRIDGE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtGui/private/qtguiglobal_p.h>
20#include <QtDBus/qdbusconnection.h>
21#include <qpa/qplatformaccessibility.h>
22#include <QtCore/qhash.h>
23
24class DeviceEventControllerAdaptor;
25
26QT_REQUIRE_CONFIG(accessibility);
27
29
30class DBusConnection;
31class QSpiDBusCache;
32class AtSpiAdaptor;
33struct RoleNames;
34
35class Q_GUI_EXPORT QSpiAccessibleBridge: public QObject, public QPlatformAccessibility
36{
38public:
39 using SpiRoleMapping = QHash <QAccessible::Role, RoleNames>;
40
42
44
45 void notifyAccessibilityUpdate(QAccessibleEvent *event) override;
47
48 const SpiRoleMapping &spiRoleNames() const { return m_spiRoleMapping; }
49
51 static RoleNames namesForRole(QAccessible::Role role);
52
53public Q_SLOTS:
55
56private:
57 void initializeConstantMappings();
58 void updateStatus();
59
61 DeviceEventControllerAdaptor *dec;
62 AtSpiAdaptor *dbusAdaptor;
63 DBusConnection* dbusConnection;
64 SpiRoleMapping m_spiRoleMapping;
65};
66
68
69#endif
Connects to the accessibility dbus.
\inmodule QtDBus
\inmodule QtCore
Definition qobject.h:103
QDBusConnection dBusConnection() const
const SpiRoleMapping & spiRoleNames() const
virtual ~QSpiAccessibleBridge()
static QSpiAccessibleBridge * instance()
void notifyAccessibilityUpdate(QAccessibleEvent *event) override
static RoleNames namesForRole(QAccessible::Role role)
void enabledChanged(bool enabled)
QCache< int, Employee > cache
[0]
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
struct _cl_event * event
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS