Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
743 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2021 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KORESOURCECACHESTORAGE_H
#define KORESOURCECACHESTORAGE_H

#include <KoResourceCacheInterface.h>
#include <QScopedPointer>

/**
 * A trivial implementation of KoResourceCacheInterface that just
 * stores cached values.
 */
class KRITARESOURCES_EXPORT KoResourceCacheStorage : public KoResourceCacheInterface
{
public:
    KoResourceCacheStorage();
    ~KoResourceCacheStorage();

    QVariant fetch(const QString &key) const override;
    void put(const QString &key, const QVariant &value) override;

private:
    struct Private;
    const QScopedPointer<Private> m_d;
};

#endif // KORESOURCECACHESTORAGE_H