Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CLinuxTimezone Class Reference

#include <LinuxTimezone.h>

Inheritance diagram for CLinuxTimezone:
ISettingCallback ISettingsHandler

Public Member Functions

 CLinuxTimezone ()
 
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...
 
std::string GetOSConfiguredTimezone ()
 
std::vector< std::string > GetCounties ()
 
std::vector< std::string > GetTimezonesByCountry (const std::string &country)
 
std::string GetCountryByTimezone (const std::string &timezone)
 
void SetTimezone (std::string timezone)
 
- Public Member Functions inherited from ISettingCallback
virtual ~ISettingCallback ()=default
 
virtual bool OnSettingChanging (std::shared_ptr< const CSetting > setting)
 The value of the given setting is being changed. More...
 
virtual void OnSettingAction (std::shared_ptr< const CSetting > setting)
 The given setting has been activated. 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...
 
- 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 OnSettingsUnloaded ()
 Setting values have been unloaded. More...
 
virtual void OnSettingsCleared ()
 Settings have been cleared. More...
 

Static Public Member Functions

static void SettingOptionsTimezoneCountriesFiller (std::shared_ptr< const CSetting > setting, std::vector< std::pair< std::string, std::string > > &list, std::string &current, void *data)
 
static void SettingOptionsTimezonesFiller (std::shared_ptr< const CSetting > setting, std::vector< std::pair< std::string, std::string > > &list, std::string &current, void *data)
 

Public Attributes

int m_IsDST = 0
 

Constructor & Destructor Documentation

◆ CLinuxTimezone()

CLinuxTimezone::CLinuxTimezone ( )
Todo:
STRING_CLEANUP

Member Function Documentation

◆ GetCounties()

std::vector< std::string > CLinuxTimezone::GetCounties ( )

◆ GetCountryByTimezone()

std::string CLinuxTimezone::GetCountryByTimezone ( const std::string &  timezone)

◆ GetOSConfiguredTimezone()

std::string CLinuxTimezone::GetOSConfiguredTimezone ( )

◆ GetTimezonesByCountry()

std::vector< std::string > CLinuxTimezone::GetTimezonesByCountry ( const std::string &  country)

◆ OnSettingChanged()

void CLinuxTimezone::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 CLinuxTimezone::OnSettingsLoaded ( )
overridevirtual

Settings have been loaded.

This callback can be used to trigger loading other settings.

Reimplemented from ISettingsHandler.

◆ SetTimezone()

void CLinuxTimezone::SetTimezone ( std::string  timezone)

◆ SettingOptionsTimezoneCountriesFiller()

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

◆ SettingOptionsTimezonesFiller()

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

Member Data Documentation

◆ m_IsDST

int CLinuxTimezone::m_IsDST = 0

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