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
5#ifndef Q_SPI_CACHE_H
6#define Q_SPI_CACHE_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 <QtGui/private/qtguiglobal_p.h>
20#include <QtCore/QObject>
21#include "qspi_struct_marshallers_p.h"
22
23QT_REQUIRE_CONFIG(accessibility);
24
25QT_BEGIN_NAMESPACE
26
27class QSpiDBusCache : public QObject
28{
29 Q_OBJECT
30
31public:
32 explicit QSpiDBusCache(QDBusConnection c, QObject* parent = nullptr);
33 void emitAddAccessible(const QSpiAccessibleCacheItem& item);
34 void emitRemoveAccessible(const QSpiObjectReference& item);
35
36Q_SIGNALS:
37 void AddAccessible(const QSpiAccessibleCacheItem &nodeAdded);
38 void RemoveAccessible(const QSpiObjectReference &nodeRemoved);
39
40public Q_SLOTS:
41 QSpiAccessibleCacheArray GetItems();
42};
43
44QT_END_NAMESPACE
45
46#endif /* Q_SPI_CACHE_H */
47

source code of qtbase/src/gui/accessible/linux/qspidbuscache_p.h