![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <MediaSettings.h>
Public Member Functions | |
bool | Load (const TiXmlNode *settings) override |
Load settings from the given XML node. More... | |
bool | Save (TiXmlNode *settings) const override |
Save settings to the given XML node. More... | |
void | OnSettingAction (std::shared_ptr< const CSetting > setting) override |
The given setting has been activated. More... | |
void | OnSettingChanged (std::shared_ptr< const CSetting > setting) override |
The value of the given setting has changed. More... | |
void | OnSettingsLoaded () override |
Settings have been loaded. More... | |
const CVideoSettings & | GetDefaultVideoSettings () const |
CVideoSettings & | GetDefaultVideoSettings () |
const CGameSettings & | GetDefaultGameSettings () const |
CGameSettings & | GetDefaultGameSettings () |
const CGameSettings & | GetCurrentGameSettings () const |
CGameSettings & | GetCurrentGameSettings () |
int | GetWatchedMode (const std::string &content) const |
Retrieve the watched mode for the given content type. More... | |
void | SetWatchedMode (const std::string &content, WatchedMode mode) |
Set the watched mode for the given content type. More... | |
void | CycleWatchedMode (const std::string &content) |
Cycle the watched mode for the given content type. More... | |
void | SetMusicPlaylistRepeat (bool repeats) |
void | SetMusicPlaylistShuffled (bool shuffled) |
void | SetVideoPlaylistRepeat (bool repeats) |
void | SetVideoPlaylistShuffled (bool shuffled) |
bool | DoesVideoStartWindowed () const |
void | SetVideoStartWindowed (bool windowed) |
int | GetAdditionalSubtitleDirectoryChecked () const |
void | SetAdditionalSubtitleDirectoryChecked (int checked) |
int | GetMusicNeedsUpdate () const |
void | SetMusicNeedsUpdate (int version) |
int | GetVideoNeedsUpdate () const |
void | SetVideoNeedsUpdate (int version) |
![]() | |
virtual | ~ISettingCallback ()=default |
virtual bool | OnSettingChanging (std::shared_ptr< const CSetting > setting) |
The value of the given setting is being changed. More... | |
virtual bool | OnSettingUpdate (std::shared_ptr< CSetting > setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
The given setting needs to be updated. More... | |
virtual void | OnSettingPropertyChanged (std::shared_ptr< const CSetting > setting, const char *propertyName) |
The given property of the given setting has changed. More... | |
![]() | |
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 | OnSettingsUnloaded () |
Setting values have been unloaded. More... | |
virtual void | OnSettingsCleared () |
Settings have been cleared. More... | |
![]() | |
virtual | ~ISubSettings ()=default |
virtual void | Clear () |
Clear any loaded setting values. More... | |
Static Public Member Functions | |
static CMediaSettings & | GetInstance () |
Protected Member Functions | |
CMediaSettings () | |
CMediaSettings (const CMediaSettings &)=delete | |
CMediaSettings & | operator= (CMediaSettings const &)=delete |
~CMediaSettings () override | |
Static Protected Member Functions | |
static std::string | GetWatchedContent (const std::string &content) |
|
protected |
|
protecteddelete |
|
overrideprotecteddefault |
void CMediaSettings::CycleWatchedMode | ( | const std::string & | content | ) |
Cycle the watched mode for the given content type.
content | Current content type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
staticprotected |
int CMediaSettings::GetWatchedMode | ( | const std::string & | content | ) | const |
Retrieve the watched mode for the given content type.
content | Current content type |
|
overridevirtual |
Load settings from the given XML node.
settings | XML node containing setting values |
Reimplemented from ISubSettings.
The given setting has been activated.
This callback is triggered whenever the given setting has been activated. This callback is only fired for CSettingAction settings.
setting | The setting which has been activated. |
Reimplemented from ISettingCallback.
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.
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
|
overridevirtual |
Settings have been loaded.
This callback can be used to trigger loading other settings.
Reimplemented from ISettingsHandler.
|
protecteddelete |
|
overridevirtual |
Save settings to the given XML node.
settings | XML node in which the settings will be saved |
Reimplemented from ISubSettings.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CMediaSettings::SetWatchedMode | ( | const std::string & | content, |
WatchedMode | mode | ||
) |
Set the watched mode for the given content type.
content | Current content type |
value | Watched mode to set |