Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBMCAddon::xbmcaddon Namespace Reference

Classes

class  Addon
 
class  Settings
 

Functions

 XBMCCOMMONS_STANDARD_EXCEPTION (AddonException)
 
template<class TSetting >
bool GetSettingValue (const std::shared_ptr< CSettingsBase > &settings, const std::string &key, typename TSetting::Value &value)
 
template<class TSetting >
bool GetSettingValueList (const std::shared_ptr< CSettingsBase > &settings, const std::string &key, std::function< typename TSetting::Value(CVariant)> transform, std::vector< typename TSetting::Value > &values)
 
template<class TSetting >
bool SetSettingValue (const std::shared_ptr< CSettingsBase > &settings, const std::string &key, typename TSetting::Value value)
 
template<class TSetting >
bool SetSettingValueList (const std::shared_ptr< CSettingsBase > &settings, const std::string &key, const std::vector< typename TSetting::Value > &values)
 
 XBMCCOMMONS_STANDARD_EXCEPTION (SettingCallbacksNotSupportedException)
 

Function Documentation

◆ GetSettingValue()

template<class TSetting >
bool XBMCAddon::xbmcaddon::GetSettingValue ( const std::shared_ptr< CSettingsBase > & settings,
const std::string & key,
typename TSetting::Value & value )

◆ GetSettingValueList()

template<class TSetting >
bool XBMCAddon::xbmcaddon::GetSettingValueList ( const std::shared_ptr< CSettingsBase > & settings,
const std::string & key,
std::function< typename TSetting::Value(CVariant)> transform,
std::vector< typename TSetting::Value > & values )

◆ SetSettingValue()

template<class TSetting >
bool XBMCAddon::xbmcaddon::SetSettingValue ( const std::shared_ptr< CSettingsBase > & settings,
const std::string & key,
typename TSetting::Value value )

◆ SetSettingValueList()

template<class TSetting >
bool XBMCAddon::xbmcaddon::SetSettingValueList ( const std::shared_ptr< CSettingsBase > & settings,
const std::string & key,
const std::vector< typename TSetting::Value > & values )

◆ XBMCCOMMONS_STANDARD_EXCEPTION() [1/2]

XBMCAddon::xbmcaddon::XBMCCOMMONS_STANDARD_EXCEPTION ( AddonException )

◆ XBMCCOMMONS_STANDARD_EXCEPTION() [2/2]

XBMCAddon::xbmcaddon::XBMCCOMMONS_STANDARD_EXCEPTION ( SettingCallbacksNotSupportedException )