Krita Source Code Documentation
Loading...
Searching...
No Matches
KisResourceModelProvider.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISRESOURCEMODELPROVIDER_H
7#define KISRESOURCEMODELPROVIDER_H
8
9#include <qglobal.h>
10
11#include "kritaresources_export.h"
12
14class KisAllTagsModel;
17
23class KRITARESOURCES_EXPORT KisResourceModelProvider
24{
25public:
28
29 static KisAllResourcesModel *resourceModel(const QString &resourceType);
30 static KisAllTagsModel *tagModel(const QString& resourceType);
31 static KisAllTagResourceModel *tagResourceModel(const QString& resourceType);
32
33 static void testingResetAllModels();
34 static void testingCloseAllQueries();
35 static KisResourceMetaDataModel *resourceMetadataModel();
36private:
37
38 struct Private;
39 Private *const d;
40
41 Q_DISABLE_COPY(KisResourceModelProvider)
42};
43
44#endif // KISRESOURCEMODELPROVIDER_H
The KisAllresourcesModel class provides access to the cache database for a particular resource type....