File indexing completed on 2024-05-12 15:59:48
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef KISGLOBALRESOURCESINTERFACE_H 0007 #define KISGLOBALRESOURCESINTERFACE_H 0008 0009 #include "kritaresources_export.h" 0010 #include "KisResourcesInterface.h" 0011 0012 /** 0013 * @brief the main resource source in Krita 0014 * 0015 * This class wraps KisResourceModel into a KisResourcesInterface and provides 0016 * all Krita resources to consumers. 0017 * 0018 * WARNING: this class should never be accessed in non-GUI thread 0019 */ 0020 class KRITARESOURCES_EXPORT KisGlobalResourcesInterface : public KisResourcesInterface 0021 { 0022 public: 0023 static KisResourcesInterfaceSP instance(); 0024 0025 protected: 0026 ResourceSourceAdapter* createSourceImpl(const QString &type) const override; 0027 }; 0028 0029 #endif // KISGLOBALRESOURCESINTERFACE_H