/* * SPDX-FileCopyrightText: 2022 by Devin Lin * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include "colorcorrectinterface.h" #include "nightcolorsettings.h" class NightColorUtil : public QObject { Q_OBJECT Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) public: NightColorUtil(QObject *parent = nullptr); bool enabled(); void setEnabled(bool enabled); Q_SIGNALS: void enabledChanged(); public Q_SLOTS: void enabledUpdated(QString name, QVariantMap map, QStringList list); private: bool m_enabled; OrgKdeKwinColorCorrectInterface *m_ccInterface; NightColorSettings *m_settings; };