File indexing completed on 2024-05-12 15:59:54

0001 /*
0002  *  SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KOLOCALSTROKECANVASRESOURCES_H
0007 #define KOLOCALSTROKECANVASRESOURCES_H
0008 
0009 #include "KoCanvasResourcesInterface.h"
0010 
0011 #include <QScopedPointer>
0012 #include <QSharedPointer>
0013 
0014 #include <kritaresources_export.h>
0015 
0016 class KRITARESOURCES_EXPORT KoLocalStrokeCanvasResources : public KoCanvasResourcesInterface
0017 {
0018 public:
0019     KoLocalStrokeCanvasResources();
0020     KoLocalStrokeCanvasResources(const KoLocalStrokeCanvasResources &rhs);
0021     KoLocalStrokeCanvasResources& operator=(const KoLocalStrokeCanvasResources &rhs);
0022     ~KoLocalStrokeCanvasResources();
0023 
0024     QVariant resource(int key) const override;
0025     void storeResource(int key, const QVariant &resource);
0026 
0027 private:
0028     struct Private;
0029     const QScopedPointer<Private> m_d;
0030 };
0031 
0032 using KoLocalStrokeCanvasResourcesSP = QSharedPointer<KoLocalStrokeCanvasResources>;
0033 
0034 #endif // KOLOCALSTROKECANVASRESOURCES_H