File indexing completed on 2024-12-15 04:59:00
0001 /* 0002 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CONFIGSTORAGE_H 0008 #define CONFIGSTORAGE_H 0009 0010 // KF 0011 #include <KConfigGroup> 0012 #include <QDateTime> 0013 0014 class ConfigStorage : public QObject 0015 { 0016 Q_OBJECT 0017 Q_PROPERTY(bool isLunarPhaseShown MEMBER m_lunarPhaseShown NOTIFY lunarPhaseShownChanged) 0018 Q_PROPERTY(bool isSeasonShown MEMBER m_seasonShown NOTIFY seasonShownChanged) 0019 0020 public: 0021 explicit ConfigStorage(QObject *parent = nullptr); 0022 0023 Q_INVOKABLE void save(); 0024 0025 Q_SIGNALS: 0026 void lunarPhaseShownChanged(); 0027 void seasonShownChanged(); 0028 0029 private: 0030 KConfigGroup m_generalConfigGroup; 0031 0032 bool m_lunarPhaseShown; 0033 bool m_seasonShown; 0034 }; 0035 0036 #endif