kodi
SettingCreator.h
1 /*
2  * Copyright (C) 2014-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 "settings/lib/ISettingCreator.h"
12 
14 {
15 public:
16  // implementation of ISettingCreator
17  std::shared_ptr<CSetting> CreateSetting(const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager = nullptr) const override;
18 
19 protected:
20  CSettingCreator() = default;
21  ~CSettingCreator() override = default;
22 };
Definition: SettingCreator.h:13
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
std::shared_ptr< CSetting > CreateSetting(const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const override
Creates a new setting of the given custom setting type.
Definition: SettingCreator.cpp:16