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

#include <SettingUtils.h>

Static Public Member Functions

static std::vector< CVariantGetList (std::shared_ptr< const CSettingList > settingList)
 Gets the values of the given list setting. More...
 
static bool SetList (std::shared_ptr< CSettingList > settingList, const std::vector< CVariant > &value)
 Sets the values of the given list setting. More...
 
static std::vector< CVariantListToValues (std::shared_ptr< const CSettingList > setting, const std::vector< std::shared_ptr< CSetting > > &values)
 
static bool ValuesToList (std::shared_ptr< const CSettingList > setting, const std::vector< CVariant > &values, std::vector< std::shared_ptr< CSetting > > &newValues)
 

Member Function Documentation

◆ GetList()

std::vector< CVariant > CSettingUtils::GetList ( std::shared_ptr< const CSettingList settingList)
static

Gets the values of the given list setting.

Parameters
settingListList setting
Returns
List of values of the given list setting

◆ ListToValues()

std::vector< CVariant > CSettingUtils::ListToValues ( std::shared_ptr< const CSettingList setting,
const std::vector< std::shared_ptr< CSetting > > &  values 
)
static

◆ SetList()

bool CSettingUtils::SetList ( std::shared_ptr< CSettingList settingList,
const std::vector< CVariant > &  value 
)
static

Sets the values of the given list setting.

Parameters
settingListList setting
valueValues to set
Returns
True if setting the values was successful, false otherwise

◆ ValuesToList()

bool CSettingUtils::ValuesToList ( std::shared_ptr< const CSettingList setting,
const std::vector< CVariant > &  values,
std::vector< std::shared_ptr< CSetting > > &  newValues 
)
static

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