Debian Codegraph @

xbmc/games/controllers/guicontrols/GUIFeatureFactory.h

raw
1 /*
2 * Copyright (C) 2017-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 "GUIControlTypes.h"
12
13 class CGUIButtonControl;
14
15 namespace KODI
16 {
17 namespace GAME
18 {
19 class CPhysicalFeature;
20 class IConfigurationWizard;
21
22 /*!
23 * \ingroup games
24 */
25 class CGUIFeatureFactory
26 {
27 public:
28 /*!
29 * \brief Create a button of the specified type
30 * \param type The type of button control being created
31 * \return A button control, or nullptr if type is invalid
32 */
33 static CGUIButtonControl* CreateButton(BUTTON_TYPE type,
34 const CGUIButtonControl& buttonTemplate,
35 IConfigurationWizard* wizard,
36 const CPhysicalFeature& feature,
37 unsigned int index);
38 };
39 } // namespace GAME
40 } // namespace KODI