File indexing completed on 2024-10-13 03:43:43
0001 /* 0002 SPDX-FileCopyrightText: 2012 Ian Wadham <iandw.au@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KGRTHEMETYPES_H 0008 #define KGRTHEMETYPES_H 0009 0010 #include <KGameTheme> 0011 0012 /** 0013 * Class to locate KGoldrunner's "Actors" SVG files: derived from KGameTheme. 0014 */ 0015 class KGrActorsTheme : public KGameTheme 0016 { 0017 Q_OBJECT 0018 public: 0019 Q_INVOKABLE KGrActorsTheme(const QByteArray &identifier, QObject *parent=nullptr); 0020 ~KGrActorsTheme() override; 0021 0022 /* 0023 * Re-defined from KGameTheme. Finds a SVG file with config name "Actors". 0024 * 0025 * @param path The full path of the theme's .desktop file. 0026 */ 0027 bool readFromDesktopFile(const QString& path) override; 0028 }; 0029 0030 0031 /** 0032 * Class to locate KGoldrunner's "Set" SVG files: derived from KGameTheme. 0033 */ 0034 class KGrSetTheme : public KGameTheme 0035 { 0036 Q_OBJECT 0037 public: 0038 Q_INVOKABLE KGrSetTheme(const QByteArray &identifier, QObject *parent=nullptr); 0039 ~KGrSetTheme() override; 0040 0041 /* 0042 * Re-defined from KGameTheme. Finds a SVG file with config name "Set". 0043 * 0044 * @param path The full path of the theme's .desktop file. 0045 */ 0046 bool readFromDesktopFile(const QString& path) override; 0047 }; 0048 0049 #endif // KGRTHEMETYPES_H