File indexing completed on 2024-05-05 05:37:07

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