xbmc
Classes | Public Member Functions | List of all members
CGUIAudioManager Class Reference
Inheritance diagram for CGUIAudioManager:
Inheritance graph
[legend]
Collaboration diagram for CGUIAudioManager:
Collaboration graph
[legend]

Public Member Functions

void OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override
 The value of the given setting has changed. More...
 
bool OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) override
 The given setting needs to be updated. More...
 
void Initialize ()
 
void DeInitialize ()
 
bool Load ()
 
void UnLoad ()
 
void PlayActionSound (const CAction &action)
 
void PlayWindowSound (int id, WINDOW_SOUND event)
 
void PlayPythonSound (const std::string &strFileName, bool useCached=true)
 
void Enable (bool bEnable)
 
void SetVolume (float level)
 
void Stop ()
 
- Public Member Functions inherited from ISettingCallback
virtual bool OnSettingChanging (const std::shared_ptr< const CSetting > &setting)
 The value of the given setting is being changed. More...
 
virtual void OnSettingAction (const std::shared_ptr< const CSetting > &setting)
 The given setting has been activated. More...
 
virtual void OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName)
 The given property of the given setting has changed. More...
 

Member Function Documentation

◆ OnSettingChanged()

void CGUIAudioManager::OnSettingChanged ( const std::shared_ptr< const CSetting > &  setting)
overridevirtual

The value of the given setting has changed.

This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.

Parameters
settingThe setting whose value has been changed

Reimplemented from ISettingCallback.

◆ OnSettingUpdate()

bool CGUIAudioManager::OnSettingUpdate ( const std::shared_ptr< CSetting > &  setting,
const char *  oldSettingId,
const TiXmlNode *  oldSettingNode 
)
overridevirtual

The given setting needs to be updated.

This callback is triggered when a setting needs to be updated because its value is outdated. This only happens when initially loading the value of a setting and will not be triggered afterwards.

Parameters
settingThe setting which needs to be updated.
oldSettingIdThe id of the previous setting.
oldSettingNodeThe old setting node
Returns
True if the setting has been successfully updated otherwise false

Reimplemented from ISettingCallback.


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