kodi
ISettingCreator.h
1 /*
2  * Copyright (C) 2013-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <memory>
12 #include <string>
13 
14 class CSetting;
15 class CSettingsManager;
16 
22 {
23 public:
24  virtual ~ISettingCreator() = default;
25 
34  virtual std::shared_ptr<CSetting> CreateSetting(const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager = nullptr) const = 0;
35 };
Setting base class containing all the properties which are common to all settings independent of the ...
Definition: Setting.h:46
virtual std::shared_ptr< CSetting > CreateSetting(const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const =0
Creates a new setting of the given custom setting type.
Interface for creating a new setting of a custom setting type.
Definition: ISettingCreator.h:21
Settings manager responsible for initializing, loading and handling all settings. ...
Definition: SettingsManager.h:41