File indexing completed on 2024-09-08 10:14:40
0001 // SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org> 0002 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu> 0003 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0004 0005 #include "registrycache_p.h" 0006 #include "registry.h" 0007 0008 using namespace QAccessibleClient; 0009 0010 RegistryPrivateCacheApi::RegistryPrivateCacheApi(Registry *registry) 0011 : m_registry(registry) 0012 {} 0013 0014 RegistryPrivateCacheApi::CacheType RegistryPrivateCacheApi::cacheType() const 0015 { 0016 return static_cast<CacheType>(m_registry->cacheType()); 0017 } 0018 0019 void RegistryPrivateCacheApi::setCacheType(CacheType type) 0020 { 0021 m_registry->setCacheType(static_cast<Registry::CacheType>(type)); 0022 } 0023 0024 AccessibleObject RegistryPrivateCacheApi::clientCacheObject(const QString &id) const 0025 { 0026 return m_registry->clientCacheObject(id); 0027 } 0028 0029 QStringList RegistryPrivateCacheApi::clientCacheObjects() const 0030 { 0031 return m_registry->clientCacheObjects(); 0032 } 0033 void RegistryPrivateCacheApi::clearClientCache() 0034 { 0035 m_registry->clearClientCache(); 0036 }