Krita Source Code Documentation
Loading...
Searching...
No Matches
KoFontStorage.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOFONTSTORAGE_H
7#define KOFONTSTORAGE_H
8
10#include <kritaflake_export.h>
11#include <KisStoragePlugin.h>
12
13class KRITAFLAKE_EXPORT KoFontStorage: public KisStoragePlugin
14{
15public:
16 KoFontStorage(const QString &location = "fontregistry");
17 virtual ~KoFontStorage();
18
19 KisResourceStorage::ResourceItem resourceItem(const QString &url) override;
20 KoResourceSP resource(const QString &url) override;
21
22 bool supportsVersioning() const override;
23 QSharedPointer<KisResourceStorage::ResourceIterator> resources(const QString &resourceType) override;
24 QSharedPointer<KisResourceStorage::TagIterator> tags(const QString &resourceType) override;
25
26 bool isValid() const override;
27
28 bool loadVersionedResource(KoResourceSP resource) override;
29};
30
31#endif // KOFONTSTORAGE_H
virtual bool supportsVersioning() const
virtual KisResourceStorage::ResourceItem resourceItem(const QString &url)=0
virtual bool isValid() const
virtual QSharedPointer< KisResourceStorage::ResourceIterator > resources(const QString &resourceType)=0
virtual bool loadVersionedResource(KoResourceSP resource)=0
virtual KoResourceSP resource(const QString &url)
virtual QSharedPointer< KisResourceStorage::TagIterator > tags(const QString &resourceType)=0
A resource item is simply an entry in the storage,.