Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
dbusconnection_p.h
Go to the documentation of this file.
1
// Copyright (C) 2020 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
DBUSCONNECTION_H
6
#
define
DBUSCONNECTION_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
<
QtCore
/
QObject
>
20
#
include
<
QtCore
/
QString
>
21
#
include
<
QtDBus
/
QDBusConnection
>
22
#
include
<
QtDBus
/
QDBusVariant
>
23
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
24
Q_MOC_INCLUDE(<QtDBus/QDBusError>)
25
26
#
include
"bus_interface_p.h"
27
#
include
"properties_interface_p.h"
28
29
QT_BEGIN_NAMESPACE
30
31
class
QDBusServiceWatcher;
32
33
class
QAtSpiDBusConnection
:
public
QObject
34
{
35
Q_OBJECT
36
37
public
:
38
QAtSpiDBusConnection
(
QObject
*
parent
=
nullptr
);
39
QDBusConnection
connection
()
const
;
40
bool
isEnabled
()
const
{
return
m_enabled; }
41
42
Q_SIGNALS
:
43
// Emitted when the global accessibility status changes to enabled
44
void
enabledChanged
(
bool
enabled
);
45
46
private
Q_SLOTS
:
47
QString
getAddressFromXCB
();
48
void
checkEnabledState();
49
void
serviceUnregistered();
50
void
connectA11yBus(
const
QString &address);
51
52
void
dbusError(
const
QDBusError &error);
53
54
private
:
55
QString getAccessibilityBusAddress()
const
;
56
57
QDBusServiceWatcher *dbusWatcher;
58
QtGuiPrivate::OrgFreedesktopDBusPropertiesInterface *m_dbusProperties;
59
QtGuiPrivate::OrgA11yStatusInterface *m_a11yStatus;
60
QDBusConnection m_a11yConnection;
61
bool
m_enabled;
62
};
63
64
QT_END_NAMESPACE
65
66
#
endif
// DBUSCONNECTION_H
AtSpiAdaptor
Definition
atspiadaptor_p.h:38
AtSpiAdaptor::introspect
QString introspect(const QString &path) const override
This function needs to handle the introspection of the virtual object on path.
AtSpiAdaptor::accessibleInterfaces
static QStringList accessibleInterfaces(QAccessibleInterface *interface)
AtSpiAdaptor::~AtSpiAdaptor
~AtSpiAdaptor()
AtSpiAdaptor::getAttributes
static QSpiAttributeSet getAttributes(QAccessibleInterface *)
AtSpiAdaptor::notify
void notify(QAccessibleEvent *event)
AtSpiAdaptor::windowActivated
void windowActivated(QObject *window, bool active)
AtSpiAdaptor::registerApplication
void registerApplication()
AtSpiAdaptor::eventListenerDeregistered
void eventListenerDeregistered(const QString &bus, const QString &path)
AtSpiAdaptor::getRole
static AtspiRole getRole(QAccessibleInterface *interface)
AtSpiAdaptor::handleMessage
bool handleMessage(const QDBusMessage &message, const QDBusConnection &connection) override
This function needs to handle all messages to the path of the virtual object, when the SubPath option...
QAtSpiDBusConnection
Connects to the accessibility dbus.
Definition
dbusconnection_p.h:34
QAtSpiDBusConnection::isEnabled
bool isEnabled() const
Definition
dbusconnection_p.h:40
QAtSpiDBusConnection::connection
QDBusConnection connection() const
Returns the DBus connection that got established.
Definition
dbusconnection.cpp:144
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
QSpiAttributeSet
QMap< QString, QString > QSpiAttributeSet
Definition
qspi_struct_marshallers_p.h:107
QSpiRelationArray
QList< QSpiRelationArrayEntry > QSpiRelationArray
Definition
qspi_struct_marshallers_p.h:95
QSpiActionArray
QList< QSpiAction > QSpiActionArray
Definition
qspi_struct_marshallers_p.h:77
QSpiObjectReference
Definition
qspi_struct_marshallers_p.h:34
qtbase
src
gui
accessible
linux
dbusconnection_p.h
Generated on
for Qt by
1.18.0