Warning, file /plasma/plasma-workspace/kcms/nightcolor/kcm.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2017 Roman Gilg <subdiff@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <KQuickManagedConfigModule>
0009 
0010 #include "nightcolorsettings.h"
0011 
0012 class NightColorData;
0013 
0014 namespace ColorCorrect
0015 {
0016 class KCMNightColor : public KQuickManagedConfigModule
0017 {
0018     Q_OBJECT
0019 
0020     Q_PROPERTY(NightColorSettings *nightColorSettings READ nightColorSettings CONSTANT)
0021     Q_PROPERTY(int minDayTemp MEMBER minDayTemp CONSTANT)
0022     Q_PROPERTY(int maxDayTemp MEMBER maxDayTemp CONSTANT)
0023     Q_PROPERTY(int minNightTemp MEMBER minNightTemp CONSTANT)
0024     Q_PROPERTY(int maxNightTemp MEMBER maxNightTemp CONSTANT)
0025 public:
0026     KCMNightColor(QObject *parent, const KPluginMetaData &data);
0027     ~KCMNightColor() override = default;
0028 
0029     NightColorSettings *nightColorSettings() const;
0030     Q_INVOKABLE bool isIconThemeBreeze();
0031 
0032 private:
0033     NightColorData *const m_data;
0034     int minDayTemp;
0035     int maxDayTemp;
0036     int minNightTemp;
0037     int maxNightTemp;
0038 
0039 public Q_SLOTS:
0040     void save() override;
0041 };
0042 
0043 }