Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SoundSettings Class Reference

#include <sound_settings.h>

Inheritance diagram for SoundSettings:
[legend]
Collaboration diagram for SoundSettings:
[legend]

Signals

void soundEnabledChanged ()
void soundThemeChanged ()
void masterVolumeChanged (int value)

Public Member Functions

bool getSoundEnabled () const override
QString getSoundThemeName () const override
int getMasterVolume () const override
void setSoundEnabled (bool _soundEnabled)
void setSoundThemeName (const QString &_soundThemeName)
void setMasterVolume (int _masterVolume)
 SoundSettings (const QString &settingPath, QObject *parent=nullptr)
Public Member Functions inherited from SettingsManager
 SettingsManager (const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
QVariant getValue (const QString &name) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup=QString()) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup, const QVariant &defaultValue) const
void batchWrite (std::function< void(QSettings &)> batchWriteFunction)
void sync ()
Public Member Functions inherited from ISoundSettingsProvider
virtual ~ISoundSettingsProvider ()=default

Private Member Functions

 SoundSettings (const SoundSettings &)

Friends

class SettingsCache

Additional Inherited Members

Protected Member Functions inherited from SettingsManager
QSettings getSettings () const
void setValue (const QVariant &value, const QString &name)
void setValue (const QVariant &value, const QString &name, const QString &group, const QString &subGroup=QString())
void deleteValue (const QString &name)
void deleteValue (const QString &name, const QString &group, const QString &subGroup=QString())
Protected Attributes inherited from SettingsManager
QString settingPath
QString defaultGroup
QString defaultSubGroup

Constructor & Destructor Documentation

◆ SoundSettings() [1/2]

SoundSettings::SoundSettings ( const QString & settingPath,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SoundSettings() [2/2]

SoundSettings::SoundSettings ( const SoundSettings & )
private
Here is the call graph for this function:

Member Function Documentation

◆ getMasterVolume()

int SoundSettings::getMasterVolume ( ) const
nodiscardoverridevirtual

Implements ISoundSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSoundEnabled()

bool SoundSettings::getSoundEnabled ( ) const
nodiscardoverridevirtual

Implements ISoundSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSoundThemeName()

QString SoundSettings::getSoundThemeName ( ) const
nodiscardoverridevirtual

Implements ISoundSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ masterVolumeChanged

void SoundSettings::masterVolumeChanged ( int value)
signal
Here is the caller graph for this function:

◆ setMasterVolume()

void SoundSettings::setMasterVolume ( int _masterVolume)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSoundEnabled()

void SoundSettings::setSoundEnabled ( bool _soundEnabled)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSoundThemeName()

void SoundSettings::setSoundThemeName ( const QString & _soundThemeName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ soundEnabledChanged

void SoundSettings::soundEnabledChanged ( )
signal
Here is the caller graph for this function:

◆ soundThemeChanged

void SoundSettings::soundThemeChanged ( )
signal
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

The documentation for this class was generated from the following files: