![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Category of groups of settings being part of a section. More...
#include <SettingSection.h>
Public Member Functions | |
CSettingCategory (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
Creates a new setting category with the given identifier. More... | |
~CSettingCategory () override=default | |
bool | Deserialize (const TiXmlNode *node, bool update=false) override |
Deserializes the given XML node into the properties of the setting object. More... | |
const SettingGroupList & | GetGroups () const |
Gets the full list of setting groups belonging to the setting category. More... | |
SettingGroupList | GetGroups (SettingLevel level) const |
Gets the list of setting groups belonging to the setting category that contain settings assigned to the given setting level (or below) and that meet the requirements and visibility conditions. More... | |
bool | CanAccess () const |
Whether the setting category can be accessed or not. More... | |
void | AddGroup (SettingGroupPtr group) |
void | AddGroups (const SettingGroupList &groups) |
![]() | |
ISetting (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
Creates a new setting object with the given identifier. More... | |
virtual | ~ISetting ()=default |
const std::string & | GetId () const |
Gets the identifier of the setting object. More... | |
virtual bool | IsVisible () const |
Whether the setting object is visible or hidden. More... | |
virtual void | SetVisible (bool visible) |
Sets the visibility state of the setting object. More... | |
int | GetLabel () const |
Gets the localizeable label ID of the setting group. More... | |
void | SetLabel (int label) |
Sets the localizeable label ID of the setting group. More... | |
int | GetHelp () const |
Gets the localizeable help ID of the setting group. More... | |
void | SetHelp (int help) |
Sets the localizeable help ID of the setting group. More... | |
virtual bool | MeetsRequirements () const |
Whether the setting object meets all necessary requirements. More... | |
virtual void | CheckRequirements () |
Checks if the setting object meets all necessary requirements. More... | |
virtual void | SetRequirementsMet (bool requirementsMet) |
Sets whether the setting object meets all necessary requirements. More... | |
Additional Inherited Members | |
![]() | |
static bool | DeserializeIdentification (const TiXmlNode *node, std::string &identification) |
Deserializes the given XML node to retrieve a setting object's identifier. More... | |
![]() | |
std::string | m_id |
CSettingsManager * | m_settingsManager |
Category of groups of settings being part of a section.
CSettingCategory::CSettingCategory | ( | const std::string & | id, |
CSettingsManager * | settingsManager = nullptr |
||
) |
Creates a new setting category with the given identifier.
id | Identifier of the setting category |
settingsManager | Reference to the settings manager |
|
overridedefault |
void CSettingCategory::AddGroup | ( | SettingGroupPtr | group | ) |
void CSettingCategory::AddGroups | ( | const SettingGroupList & | groups | ) |
bool CSettingCategory::CanAccess | ( | ) | const |
Whether the setting category can be accessed or not.
|
overridevirtual |
Deserializes the given XML node into the properties of the setting object.
If the update parameter is true, the checks for mandatory properties are skipped and values are only updated.
node | XML node containing the properties of the setting object |
update | Whether to perform checks for mandatory properties or not |
Reimplemented from ISetting.
|
inline |
Gets the full list of setting groups belonging to the setting category.
SettingGroupList CSettingCategory::GetGroups | ( | SettingLevel | level | ) | const |
Gets the list of setting groups belonging to the setting category that contain settings assigned to the given setting level (or below) and that meet the requirements and visibility conditions.
level | Level the settings should be assigned to |