xbmc
Public Member Functions | List of all members
ISettingCreator Class Referenceabstract

Interface for creating a new setting of a custom setting type. More...

#include <ISettingCreator.h>

Inheritance diagram for ISettingCreator:
Inheritance graph
[legend]

Public Member Functions

virtual std::shared_ptr< CSettingCreateSetting (const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const =0
 Creates a new setting of the given custom setting type. More...
 

Detailed Description

Interface for creating a new setting of a custom setting type.

Member Function Documentation

◆ CreateSetting()

virtual std::shared_ptr<CSetting> ISettingCreator::CreateSetting ( const std::string &  settingType,
const std::string &  settingId,
CSettingsManager settingsManager = nullptr 
) const
pure virtual

Creates a new setting of the given custom setting type.

Parameters
settingTypestring representation of the setting type
settingIdIdentifier of the setting to be created
settingsManagerReference to the settings manager
Returns
A new setting object of the given (custom) setting type or nullptr if the setting type is unknown

Implemented in CSettingsManager, ADDON::CAddonSettings, and CSettingCreator.


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