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 QACCESSIBLEBRIDGE_H |
5 | #define QACCESSIBLEBRIDGE_H |
6 | |
7 | #include <QtGui/qtguiglobal.h> |
8 | #include <QtCore/qplugin.h> |
9 | #include <QtCore/qfactoryinterface.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | |
14 | #if QT_CONFIG(accessibility) |
15 | |
16 | class QAccessibleInterface; |
17 | class QAccessibleEvent; |
18 | |
19 | class QAccessibleBridge |
20 | { |
21 | public: |
22 | virtual ~QAccessibleBridge() {} |
23 | virtual void setRootObject(QAccessibleInterface *) = 0; |
24 | virtual void notifyAccessibilityUpdate(QAccessibleEvent *event) = 0; |
25 | }; |
26 | |
27 | #define QAccessibleBridgeFactoryInterface_iid "org.qt-project.Qt.QAccessibleBridgeFactoryInterface" |
28 | |
29 | class Q_GUI_EXPORT QAccessibleBridgePlugin : public QObject |
30 | { |
31 | Q_OBJECT |
32 | public: |
33 | explicit QAccessibleBridgePlugin(QObject *parent = nullptr); |
34 | ~QAccessibleBridgePlugin(); |
35 | |
36 | virtual QAccessibleBridge *create(const QString &key) = 0; |
37 | }; |
38 | |
39 | #endif // QT_CONFIG(accessibility) |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // QACCESSIBLEBRIDGE_H |
44 | |