Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
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 ( )

◆ ~CSettingCreator()

CSettingCreator::~CSettingCreator ( )

Member Function Documentation

◆ CreateSetting()

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

Creates a new setting of the given custom setting type.

settingTypestring representation of the setting type
settingIdIdentifier of the setting to be created
settingsManagerReference to the settings manager
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: