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

#include <SettingCreator.h>

Inheritance diagram for CSettingCreator:
ISettingCreator ADDON::CAddonSettings CSettings

Public Member Functions

std::shared_ptr< CSettingCreateSetting (const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const override
 Creates a new setting of the given custom setting type.
 
- Public Member Functions inherited from ISettingCreator
virtual ~ISettingCreator ()=default
 

Protected Member Functions

 CSettingCreator ()=default
 
 ~CSettingCreator () override=default
 

Constructor & Destructor Documentation

◆ CSettingCreator()

CSettingCreator::CSettingCreator ( )
protecteddefault

◆ ~CSettingCreator()

CSettingCreator::~CSettingCreator ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateSetting()

std::shared_ptr< CSetting > CSettingCreator::CreateSetting ( const std::string & settingType,
const std::string & settingId,
CSettingsManager * settingsManager = nullptr ) const
overridevirtual

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

Implements ISettingCreator.


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