Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
PVR::CPVRSettings Class Reference

#include <PVRSettings.h>

Inheritance diagram for PVR::CPVRSettings:
ISettingsHandler ISettingCallback

Public Member Functions

 CPVRSettings (const std::set< std::string > &settingNames)
 
 ~CPVRSettings () override
 
void OnSettingsLoaded () override
 Settings have been loaded. More...
 
void OnSettingChanged (std::shared_ptr< const CSetting > setting) override
 The value of the given setting has changed. More...
 
bool GetBoolValue (const std::string &settingName) const
 
int GetIntValue (const std::string &settingName) const
 
std::string GetStringValue (const std::string &settingName) const
 

Static Public Member Functions

static void MarginTimeFiller (std::shared_ptr< const CSetting > setting, std::vector< std::pair< std::string, int > > &list, int &current, void *data)
 
static bool IsSettingVisible (const std::string &condition, const std::string &value, std::shared_ptr< const CSetting > setting, void *data)
 

Constructor & Destructor Documentation

§ CPVRSettings()

CPVRSettings::CPVRSettings ( const std::set< std::string > &  settingNames)
explicit

§ ~CPVRSettings()

CPVRSettings::~CPVRSettings ( )
override

Member Function Documentation

§ GetBoolValue()

bool CPVRSettings::GetBoolValue ( const std::string &  settingName) const

§ GetIntValue()

int CPVRSettings::GetIntValue ( const std::string &  settingName) const

§ GetStringValue()

std::string CPVRSettings::GetStringValue ( const std::string &  settingName) const

§ IsSettingVisible()

bool CPVRSettings::IsSettingVisible ( const std::string &  condition,
const std::string &  value,
std::shared_ptr< const CSetting setting,
void data 
)
static

§ MarginTimeFiller()

void CPVRSettings::MarginTimeFiller ( std::shared_ptr< const CSetting setting,
std::vector< std::pair< std::string, int > > &  list,
int &  current,
void data 
)
static

§ OnSettingChanged()

void CPVRSettings::OnSettingChanged ( 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.

§ OnSettingsLoaded()

void CPVRSettings::OnSettingsLoaded ( )
overridevirtual

Settings have been loaded.

This callback can be used to trigger loading other settings.

Reimplemented from ISettingsHandler.


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