File indexing completed on 2024-05-12 15:59:55
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "KoResourceCachePrefixedStorageWrapper.h" 0007 0008 #include <QVariant> 0009 0010 0011 KoResourceCachePrefixedStorageWrapper::KoResourceCachePrefixedStorageWrapper(const QString &prefix, KoResourceCacheInterfaceSP baseInterface) 0012 : m_prefix(prefix), 0013 m_baseInterface(baseInterface) 0014 { 0015 } 0016 0017 QVariant KoResourceCachePrefixedStorageWrapper::fetch(const QString &key) const 0018 { 0019 return m_baseInterface->fetch(m_prefix + key); 0020 } 0021 0022 void KoResourceCachePrefixedStorageWrapper::put(const QString &key, const QVariant &value) 0023 { 0024 m_baseInterface->put(m_prefix + key, value); 0025 }