kodi
ISettingControlCreator.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 ISettingControl;
15 
21 {
22 public:
23  virtual ~ISettingControlCreator() = default;
24 
31  virtual std::shared_ptr<ISettingControl> CreateControl(const std::string &controlType) const = 0;
32 };
virtual std::shared_ptr< ISettingControl > CreateControl(const std::string &controlType) const =0
Creates a new setting control of the given custom setting control type.
Interface for creating a new setting control of a custom setting control type.
Definition: ISettingControlCreator.h:20
Definition: ISettingControl.h:17