File indexing completed on 2024-10-13 12:11:59
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Nicolas Fella <nicolas.fella@gmx.de> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KCOLORSCHEMEWATCHER_XDG_H 0008 #define KCOLORSCHEMEWATCHER_XDG_H 0009 0010 #include "kcolorschemewatcherbackend.h" 0011 0012 #include <QDBusVariant> 0013 0014 class KColorSchemeWatcherXDG : public KColorSchemeWatcherBackend 0015 { 0016 Q_OBJECT 0017 public: 0018 KColorSchemeWatcherXDG(); 0019 KColorSchemeWatcher::ColorPreference systemPreference() const override; 0020 0021 private Q_SLOTS: 0022 void slotSettingChanged(QString, QString, QDBusVariant); 0023 0024 private: 0025 KColorSchemeWatcher::ColorPreference fdoToInternal(uint value) const; 0026 KColorSchemeWatcher::ColorPreference m_preference = KColorSchemeWatcher::NoPreference; 0027 }; 0028 0029 #endif