File indexing completed on 2024-11-17 05:02:18
0001 /* 0002 SPDX-FileCopyrightText: 2019 David Redondo <kde@david-redondo.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CUTTLEFISHCOLORSCHEMES_H 0008 #define CUTTLEFISHCOLORSCHEMES_H 0009 0010 #include <QAbstractItemModel> 0011 #include <QObject> 0012 #include <QString> 0013 0014 class KColorSchemeManager; 0015 0016 namespace CuttleFish 0017 { 0018 class ColorSchemes : public QObject 0019 { 0020 Q_OBJECT 0021 0022 Q_PROPERTY(QAbstractItemModel *colorSchemes READ colorSchemes CONSTANT) 0023 0024 public: 0025 Q_INVOKABLE void activateColorScheme(const QString &name); 0026 0027 ColorSchemes(QObject *parent); 0028 0029 QAbstractItemModel *colorSchemes(); 0030 0031 private: 0032 KColorSchemeManager *m_colorManager; 0033 }; 0034 } 0035 #endif