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
qwindowsuiaprovidercache.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QWINDOWSUIAPROVIDERCACHE_H
5#define QWINDOWSUIAPROVIDERCACHE_H
6
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
9
11
12#include <QtCore/qhash.h>
13#include <QtGui/qaccessible.h>
14
16
17// Singleton used to cache provider instances using the accessibility ID as the key.
18class QWindowsUiaProviderCache : public QObject
19{
20 QWindowsUiaProviderCache();
22public:
23 static QWindowsUiaProviderCache *instance();
24 QWindowsUiaBaseProvider *providerForId(QAccessible::Id id) const;
25 void insert(QAccessible::Id id, QWindowsUiaBaseProvider *provider);
26 void remove(QAccessible::Id id);
27
28private Q_SLOTS:
29 void objectDestroyed(QObject *obj);
30
31private:
32 QHash<QAccessible::Id, QWindowsUiaBaseProvider *> m_providerTable;
33 QHash<QObject *, QAccessible::Id> m_inverseTable;
34};
35
37
38#endif // QT_CONFIG(accessibility)
39
40#endif // QWINDOWSUIAPROVIDERCACHE_H
\inmodule QtCore
Definition qobject.h:103
cache insert(employee->id(), employee)
Combined button and popup list for selecting options.
GLhandleARB obj
[2]
#define Q_OBJECT
#define Q_SLOTS
settings remove("monkey")