1 | /* |
---|---|
2 | * SPDX-FileCopyrightText: 2021 Nicolas Fella <nicolas.fella@gmx.de> |
3 | * |
4 | * SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef KCOLORSCHEMEWATCHER_XDG_H |
8 | #define KCOLORSCHEMEWATCHER_XDG_H |
9 | |
10 | #include "kcolorschemewatcherbackend.h" |
11 | |
12 | #include <QDBusVariant> |
13 | |
14 | class KColorSchemeWatcherXDG : public KColorSchemeWatcherBackend |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | KColorSchemeWatcherXDG(); |
19 | KColorSchemeWatcher::ColorPreference systemPreference() const override; |
20 | |
21 | private Q_SLOTS: |
22 | void slotSettingChanged(QString, QString, QDBusVariant); |
23 | |
24 | private: |
25 | KColorSchemeWatcher::ColorPreference fdoToInternal(uint value) const; |
26 | KColorSchemeWatcher::ColorPreference m_preference = KColorSchemeWatcher::NoPreference; |
27 | }; |
28 | |
29 | #endif |
30 |