Krita Source Code Documentation
Loading...
Searching...
No Matches
KoResourceCacheStorage.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KORESOURCECACHESTORAGE_H
8#define KORESOURCECACHESTORAGE_H
9
11#include <QScopedPointer>
12
17class KRITARESOURCES_EXPORT KoResourceCacheStorage : public KoResourceCacheInterface
18{
19public:
22
23 QVariant fetch(const QString &key) const override;
24 void put(const QString &key, const QVariant &value) override;
25
26private:
27 struct Private;
28 const QScopedPointer<Private> m_d;
29};
30
31#endif // KORESOURCECACHESTORAGE_H
float value(const T *src, size_t ch)
a provider-like interface class for sharing caches between multiple resources
virtual QVariant fetch(const QString &key) const =0
fetch a cached object from the cache using key
virtual void put(const QString &key, const QVariant &value)=0
const QScopedPointer< Private > m_d