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

Public Member Functions

void OnSettingsLoaded () override
 Settings have been loaded. More...
 
void OnSettingsUnloaded () override
 Setting values have been unloaded. More...
 
bool Load ()
 
bool Load (const std::string &file)
 
bool Save ()
 
bool Save (const std::string &file) const
 
void Clear ()
 
VECSOURCESGetSources (const std::string &type)
 
const std::string & GetDefaultSource (const std::string &type) const
 
void SetDefaultSource (const std::string &type, const std::string &source)
 
bool UpdateSource (const std::string &strType, const std::string &strOldName, const std::string &strUpdateChild, const std::string &strUpdateValue)
 
bool DeleteSource (const std::string &strType, const std::string &strName, const std::string &strPath, bool virtualSource=false)
 
bool AddShare (const std::string &type, const CMediaSource &share)
 
bool UpdateShare (const std::string &type, const std::string &oldName, const CMediaSource &share)
 
- Public Member Functions inherited from ISettingsHandler
virtual bool OnSettingsLoading ()
 Settings loading has been initiated. More...
 
virtual bool OnSettingsSaving () const
 Settings saving has been initiated. More...
 
virtual void OnSettingsSaved () const
 Settings have been saved. More...
 
virtual void OnSettingsCleared ()
 Settings have been cleared. More...
 

Static Public Member Functions

static CMediaSourceSettingsGetInstance ()
 
static std::string GetSourcesFile ()
 

Protected Member Functions

 CMediaSourceSettings (const CMediaSourceSettings &)=delete
 
CMediaSourceSettingsoperator= (CMediaSourceSettings const &)=delete
 

Member Function Documentation

◆ OnSettingsLoaded()

void CMediaSourceSettings::OnSettingsLoaded ( )
overridevirtual

Settings have been loaded.

This callback can be used to trigger loading other settings.

Reimplemented from ISettingsHandler.

◆ OnSettingsUnloaded()

void CMediaSourceSettings::OnSettingsUnloaded ( )
overridevirtual

Setting values have been unloaded.

This callback can be used to trigger uninitializing any state variables (e.g. before re-loading the settings).

Reimplemented from ISettingsHandler.

◆ Save()

bool CMediaSourceSettings::Save ( const std::string &  file) const
Todo:
Should we be specifying utf8 here??

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