kodi
Static Public Member Functions | List of all members
CSettingUtils Class Reference

Static Public Member Functions

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

Member Function Documentation

◆ FindIntInList()

bool CSettingUtils::FindIntInList ( const std::shared_ptr< const CSettingList > &  settingList,
int  value 
)
static

Search in a list of Ints for a given value.

Parameters
settingListCSettingList instance
valuevalue to search for
Returns
True if value was found in list, false otherwise

◆ GetList()

std::vector< CVariant > CSettingUtils::GetList ( const 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

◆ SetList()

bool CSettingUtils::SetList ( const 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

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