8#include <QtDBus/QDBusMessage>
9#include <QtDBus/QDBusServiceWatcher>
12#include <QDBusConnectionInterface>
13#include "bus_interface.h"
15#include <QtGui/qguiapplication.h>
16#include <qpa/qplatformnativeinterface.h>
25#define A11Y_SERVICE "org.a11y.Bus"_L1
26#define A11Y_PATH "/org/a11y/bus"_L1
48 if (!
c.isConnected()) {
67QString DBusConnection::getAddressFromXCB()
75 if (addressByteArray) {
77 delete addressByteArray;
86void DBusConnection::serviceRegistered()
97 bool enabled = a11yAlwaysOn || a11yStatus->screenReaderEnabled() || a11yStatus->isEnabled();
114void DBusConnection::serviceUnregistered()
122 qWarning(
"Could not find Accessibility DBus address.");
133 qWarning() <<
"Accessibility encountered a DBus error:" <<
error;
142 return m_a11yConnection;
147#include "moc_dbusconnection_p.cpp"
void enabledChanged(bool enabled)
DBusConnection(QObject *parent=nullptr)
QDBusConnection connection() const
Returns the DBus connection that got established.
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
bool isConnected() const
Returns true if this QDBusConnection object is connected.
static QDBusConnection connectToBus(BusType type, const QString &name)
Opens a connection of type type to one of the known buses and associate with it the connection name n...
static QDBusConnection sessionBus()
Returns a QDBusConnection object opened with the session bus.
static QDBusMessage createMethodCall(const QString &destination, const QString &path, const QString &interface, const QString &method)
Constructs a new DBus message representing a method call.
The QDBusServiceWatcher class allows the user to watch for a bus service change.
static QPlatformNativeInterface * platformNativeInterface()
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString fromLocal8Bit(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
DBusConnection const char DBusError * error
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLuint GLuint64EXT address
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
Q_CORE_EXPORT bool qEnvironmentVariableIsSet(const char *varName) noexcept
QApplication app(argc, argv)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent