#include <MediaSourceSettings.h>
|
| 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 () |
| |
| VECSOURCES * | GetSources (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 | ~ISettingsHandler ()=default |
| |
| 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...
|
| |
◆ CMediaSourceSettings() [1/2]
| CMediaSourceSettings::CMediaSourceSettings |
( |
| ) |
|
|
protected |
◆ CMediaSourceSettings() [2/2]
◆ ~CMediaSourceSettings()
| CMediaSourceSettings::~CMediaSourceSettings |
( |
| ) |
|
|
overrideprotecteddefault |
◆ AddShare()
| bool CMediaSourceSettings::AddShare |
( |
const std::string & |
type, |
|
|
const CMediaSource & |
share |
|
) |
| |
◆ Clear()
| void CMediaSourceSettings::Clear |
( |
| ) |
|
◆ DeleteSource()
| bool CMediaSourceSettings::DeleteSource |
( |
const std::string & |
strType, |
|
|
const std::string & |
strName, |
|
|
const std::string & |
strPath, |
|
|
bool |
virtualSource = false |
|
) |
| |
◆ GetDefaultSource()
| const std::string & CMediaSourceSettings::GetDefaultSource |
( |
const std::string & |
type | ) |
const |
◆ GetInstance()
◆ GetSources()
| VECSOURCES * CMediaSourceSettings::GetSources |
( |
const std::string & |
type | ) |
|
◆ GetSourcesFile()
| std::string CMediaSourceSettings::GetSourcesFile |
( |
| ) |
|
|
static |
◆ Load() [1/2]
| bool CMediaSourceSettings::Load |
( |
| ) |
|
◆ Load() [2/2]
| bool CMediaSourceSettings::Load |
( |
const std::string & |
file | ) |
|
◆ 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.
◆ operator=()
◆ Save() [1/2]
| bool CMediaSourceSettings::Save |
( |
| ) |
|
◆ Save() [2/2]
| bool CMediaSourceSettings::Save |
( |
const std::string & |
file | ) |
const |
- Todo:
- Should we be specifying utf8 here??
◆ SetDefaultSource()
| void CMediaSourceSettings::SetDefaultSource |
( |
const std::string & |
type, |
|
|
const std::string & |
source |
|
) |
| |
◆ UpdateShare()
| bool CMediaSourceSettings::UpdateShare |
( |
const std::string & |
type, |
|
|
const std::string & |
oldName, |
|
|
const CMediaSource & |
share |
|
) |
| |
◆ UpdateSource()
| bool CMediaSourceSettings::UpdateSource |
( |
const std::string & |
strType, |
|
|
const std::string & |
strOldName, |
|
|
const std::string & |
strUpdateChild, |
|
|
const std::string & |
strUpdateValue |
|
) |
| |
The documentation for this class was generated from the following files: