Qt Accessibility Client

registrycache.cpp
1// SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org>
2// SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu>
3// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
4
5#include "registrycache_p.h"
6#include "registry.h"
7
8using namespace QAccessibleClient;
9
10RegistryPrivateCacheApi::RegistryPrivateCacheApi(Registry *registry)
11 : m_registry(registry)
12{}
13
14RegistryPrivateCacheApi::CacheType RegistryPrivateCacheApi::cacheType() const
15{
16 return static_cast<CacheType>(m_registry->cacheType());
17}
18
19void RegistryPrivateCacheApi::setCacheType(CacheType type)
20{
21 m_registry->setCacheType(static_cast<Registry::CacheType>(type));
22}
23
24AccessibleObject RegistryPrivateCacheApi::clientCacheObject(const QString &id) const
25{
26 return m_registry->clientCacheObject(id);
27}
28
29QStringList RegistryPrivateCacheApi::clientCacheObjects() const
30{
31 return m_registry->clientCacheObjects();
32}
33void RegistryPrivateCacheApi::clearClientCache()
34{
35 m_registry->clearClientCache();
36}
This class represents an accessible object.
This class represents the global accessibility registry.
Definition registry.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:55:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.