Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CSettingUtils Class Reference

#include <SettingUtils.h>

Static Public Member Functions

static std::vector< CVariantGetList (const std::shared_ptr< const CSettingList > &settingList)
 Gets the values of the given list setting.
 
static bool SetList (const std::shared_ptr< CSettingList > &settingList, const std::vector< CVariant > &value)
 Sets the values of the given list setting.
 
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.
 

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

◆ ListToValues()

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

◆ 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

◆ ValuesToList()

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