Merge pull request #26073 from sundermann/ffmpeg-new-codec-profiles
[xbmc.git] / xbmc / pvr / dialogs / GUIDialogPVRRadioRDSInfo.h
blob4ae1b0b3d0e801261e180585d080e2762fe5ddb2
1 /*
2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "guilib/GUIDialog.h"
13 #include <string>
15 class CGUISpinControl;
16 class CGUITextBox;
18 namespace PVR
20 class CGUIDialogPVRRadioRDSInfo : public CGUIDialog
22 public:
23 CGUIDialogPVRRadioRDSInfo();
24 ~CGUIDialogPVRRadioRDSInfo() override = default;
25 bool OnMessage(CGUIMessage& message) override;
27 protected:
28 void OnInitWindow() override;
30 private:
31 class InfoControl
33 public:
34 InfoControl(uint32_t iSpinLabelId, uint32_t iSpinControlId);
35 void Init(CGUISpinControl* spin, CGUITextBox* textbox);
36 bool Update(const std::string& textboxValue);
38 private:
39 CGUISpinControl* m_spinControl = nullptr;
40 uint32_t m_iSpinLabelId = 0;
41 uint32_t m_iSpinControlId = 0;
42 CGUITextBox* m_textbox = nullptr;
43 bool m_bSpinLabelPresent = false;
44 std::string m_textboxValue;
47 void InitInfoControls();
48 void UpdateInfoControls();
50 InfoControl m_InfoNews;
51 InfoControl m_InfoNewsLocal;
52 InfoControl m_InfoSport;
53 InfoControl m_InfoWeather;
54 InfoControl m_InfoLottery;
55 InfoControl m_InfoStock;
56 InfoControl m_InfoOther;
57 InfoControl m_InfoCinema;
58 InfoControl m_InfoHoroscope;