Debian Codegraph @

xbmc/games/controllers/guicontrols/GUIScalarFeatureButton.h

raw
1 /*
2 * Copyright (C) 2016-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 "GUIFeatureButton.h"
12
13 namespace KODI
14 {
15 namespace GAME
16 {
17 /*!
18 * \ingroup games
19 */
20 class CGUIScalarFeatureButton : public CGUIFeatureButton
21 {
22 public:
23 CGUIScalarFeatureButton(const CGUIButtonControl& buttonTemplate,
24 IConfigurationWizard* wizard,
25 const CPhysicalFeature& feature,
26 unsigned int index);
27
28 ~CGUIScalarFeatureButton() override = default;
29
30 // implementation of IFeatureButton
31 bool PromptForInput(CEvent& waitEvent) override;
32 bool IsFinished() const override;
33 void Reset() override;
34
35 private:
36 enum class STATE
37 {
38 NEED_INPUT,
39 FINISHED,
40 };
41
42 STATE m_state;
43 };
44 } // namespace GAME
45 } // namespace KODI