mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
34 lines
912 B
C++
34 lines
912 B
C++
#ifndef SOUND_SETTINGS_H
|
|
#define SOUND_SETTINGS_H
|
|
|
|
#include "settings_manager.h"
|
|
|
|
#include <libcockatrice/interfaces/interface_sound_settings_provider.h>
|
|
|
|
class SoundSettings : public SettingsManager, public ISoundSettingsProvider
|
|
{
|
|
Q_OBJECT
|
|
friend class SettingsCache;
|
|
|
|
public:
|
|
[[nodiscard]] bool getSoundEnabled() const override;
|
|
[[nodiscard]] QString getSoundThemeName() const override;
|
|
[[nodiscard]] int getMasterVolume() const override;
|
|
|
|
void setSoundEnabled(bool _soundEnabled);
|
|
void setSoundThemeName(const QString &_soundThemeName);
|
|
void setMasterVolume(int _masterVolume);
|
|
|
|
signals:
|
|
void soundEnabledChanged();
|
|
void soundThemeChanged();
|
|
void masterVolumeChanged(int value);
|
|
|
|
public:
|
|
explicit SoundSettings(const QString &settingPath, QObject *parent = nullptr);
|
|
|
|
private:
|
|
SoundSettings(const SoundSettings & /*other*/);
|
|
};
|
|
|
|
#endif // SOUND_SETTINGS_H
|