File indexing completed on 2024-05-19 05:38:22
0001 /* 0002 * SPDX-FileCopyrightText: 2023 Ismael Asensio <isma.af@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef SOUNDTHEMECONFIG_H 0008 #define SOUNDTHEMECONFIG_H 0009 0010 #include <QObject> 0011 0012 #include <KConfigWatcher> 0013 0014 class SoundThemeConfig : public QObject 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit SoundThemeConfig(QObject *parent = nullptr); 0020 0021 QString soundTheme() const; 0022 0023 Q_SIGNALS: 0024 void soundThemeChanged(const QString &theme); 0025 0026 private Q_SLOTS: 0027 void kdeglobalsChanged(const KConfigGroup &group, const QByteArrayList &names); 0028 0029 private: 0030 QString m_soundTheme; 0031 KConfigWatcher::Ptr m_soundThemeWatcher; 0032 }; 0033 0034 #endif