| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/accessible/qaccessiblebridge.cpp |
| Source code | Switch to Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | /**************************************************************************** | - |
| 2 | ** | - |
| 3 | ** Copyright (C) 2015 The Qt Company Ltd. | - |
| 4 | ** Contact: http://www.qt.io/licensing/ | - |
| 5 | ** | - |
| 6 | ** This file is part of the QtGui module of the Qt Toolkit. | - |
| 7 | ** | - |
| 8 | ** $QT_BEGIN_LICENSE:LGPL21$ | - |
| 9 | ** Commercial License Usage | - |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
| 11 | ** accordance with the commercial license agreement provided with the | - |
| 12 | ** Software or, alternatively, in accordance with the terms contained in | - |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms | - |
| 14 | ** and conditions see http://www.qt.io/terms-conditions. For further | - |
| 15 | ** information use the contact form at http://www.qt.io/contact-us. | - |
| 16 | ** | - |
| 17 | ** GNU Lesser General Public License Usage | - |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
| 19 | ** General Public License version 2.1 or version 3 as published by the Free | - |
| 20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and | - |
| 21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the | - |
| 22 | ** following information to ensure the GNU Lesser General Public License | - |
| 23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and | - |
| 24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
| 25 | ** | - |
| 26 | ** As a special exception, The Qt Company gives you certain additional | - |
| 27 | ** rights. These rights are described in The Qt Company LGPL Exception | - |
| 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
| 29 | ** | - |
| 30 | ** $QT_END_LICENSE$ | - |
| 31 | ** | - |
| 32 | ****************************************************************************/ | - |
| 33 | - | |
| 34 | #include "qaccessiblebridge.h" | - |
| 35 | - | |
| 36 | #ifndef QT_NO_ACCESSIBILITY | - |
| 37 | - | |
| 38 | QT_BEGIN_NAMESPACE | - |
| 39 | - | |
| 40 | /*! | - |
| 41 | \class QAccessibleBridge | - |
| 42 | \brief The QAccessibleBridge class is the base class for | - |
| 43 | accessibility back-ends. | - |
| 44 | \internal | - |
| 45 | - | |
| 46 | \ingroup accessibility | - |
| 47 | \inmodule QtWidgets | - |
| 48 | - | |
| 49 | Qt supports Microsoft Active Accessibility (MSAA), \macos | - |
| 50 | Accessibility, and the Unix/X11 AT-SPI standard. By subclassing | - |
| 51 | QAccessibleBridge, you can support other backends than the | - |
| 52 | predefined ones. | - |
| 53 | - | |
| 54 | Currently, custom bridges are only supported on Unix. We might | - |
| 55 | add support for them on other platforms as well if there is | - |
| 56 | enough demand. | - |
| 57 | - | |
| 58 | \sa QAccessible, QAccessibleBridgePlugin | - |
| 59 | */ | - |
| 60 | - | |
| 61 | /*! | - |
| 62 | \fn QAccessibleBridge::~QAccessibleBridge() | - |
| 63 | - | |
| 64 | Destroys the accessibility bridge object. | - |
| 65 | */ | - |
| 66 | - | |
| 67 | /*! | - |
| 68 | \fn void QAccessibleBridge::setRootObject(QAccessibleInterface *object) | - |
| 69 | - | |
| 70 | This function is called by Qt at application startup to set the | - |
| 71 | root accessible object of the application to \a object. All other | - |
| 72 | accessible objects in the application can be reached by the | - |
| 73 | client using object navigation. | - |
| 74 | */ | - |
| 75 | - | |
| 76 | /*! | - |
| 77 | \fn void QAccessibleBridge::notifyAccessibilityUpdate(QAccessibleEvent *event) | - |
| 78 | - | |
| 79 | This function is called by Qt to notify the bridge about a change | - |
| 80 | in the accessibility information. The \a event specifies the interface, | - |
| 81 | object, reason and child element that has changed. | - |
| 82 | - | |
| 83 | \sa QAccessible::updateAccessibility() | - |
| 84 | */ | - |
| 85 | - | |
| 86 | /*! | - |
| 87 | \class QAccessibleBridgePlugin | - |
| 88 | \brief The QAccessibleBridgePlugin class provides an abstract | - |
| 89 | base for accessibility bridge plugins. | - |
| 90 | \internal | - |
| 91 | - | |
| 92 | \ingroup plugins | - |
| 93 | \ingroup accessibility | - |
| 94 | \inmodule QtWidgets | - |
| 95 | - | |
| 96 | Writing an accessibility bridge plugin is achieved by subclassing | - |
| 97 | this base class, reimplementing the pure virtual function create(), | - |
| 98 | and exporting the class with the Q_PLUGIN_METADATA() macro. | - |
| 99 | - | |
| 100 | \sa QAccessibleBridge, QAccessiblePlugin, {How to Create Qt Plugins} | - |
| 101 | */ | - |
| 102 | - | |
| 103 | /*! | - |
| 104 | Constructs an accessibility bridge plugin with the given \a | - |
| 105 | parent. This is invoked automatically by the plugin loader. | - |
| 106 | */ | - |
| 107 | QAccessibleBridgePlugin::QAccessibleBridgePlugin(QObject *parent) | - |
| 108 | : QObject(parent) | - |
| 109 | { | - |
| 110 | - | |
| 111 | } never executed: end of block | 0 |
| 112 | - | |
| 113 | /*! | - |
| 114 | Destroys the accessibility bridge plugin. | - |
| 115 | - | |
| 116 | You never have to call this explicitly. Qt destroys a plugin | - |
| 117 | automatically when it is no longer used. | - |
| 118 | */ | - |
| 119 | QAccessibleBridgePlugin::~QAccessibleBridgePlugin() | - |
| 120 | { | - |
| 121 | - | |
| 122 | } | - |
| 123 | - | |
| 124 | /*! | - |
| 125 | \fn QAccessibleBridge *QAccessibleBridgePlugin::create(const QString &key) | - |
| 126 | - | |
| 127 | Creates and returns the QAccessibleBridge object corresponding to | - |
| 128 | the given \a key. Keys are case sensitive. | - |
| 129 | - | |
| 130 | \sa keys() | - |
| 131 | */ | - |
| 132 | - | |
| 133 | QT_END_NAMESPACE | - |
| 134 | - | |
| 135 | #endif // QT_NO_ACCESSIBILITY | - |
| Source code | Switch to Preprocessed file |