xbmc
xbmc
pvr
dialogs
GUIDialogPVRRadioRDSInfo.h
1
/*
2
* Copyright (C) 2012-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 "
guilib/GUIDialog.h
"
12
13
#include <string>
14
15
class
CGUISpinControl
;
16
class
CGUITextBox
;
17
18
namespace
PVR
19
{
20
class
CGUIDialogPVRRadioRDSInfo
:
public
CGUIDialog
21
{
22
public
:
23
CGUIDialogPVRRadioRDSInfo
();
24
~
CGUIDialogPVRRadioRDSInfo
()
override
=
default
;
25
bool
OnMessage(
CGUIMessage
& message)
override
;
26
27
protected
:
28
void
OnInitWindow
()
override
;
29
30
private
:
31
class
InfoControl
32
{
33
public
:
34
InfoControl(uint32_t iSpinLabelId, uint32_t iSpinControlId);
35
void
Init(
CGUISpinControl
* spin,
CGUITextBox
* textbox);
36
bool
Update(
const
std::string& textboxValue);
37
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;
45
};
46
47
void
InitInfoControls();
48
void
UpdateInfoControls();
49
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;
59
};
60
}
CGUISpinControl
Definition:
GUISpinControl.h:31
PVR::CGUIDialogPVRRadioRDSInfo
Definition:
GUIDialogPVRRadioRDSInfo.h:20
PVR
Definition:
ContextMenuManager.h:24
CGUITextBox
Definition:
GUITextBox.h:28
GUIDialog.h
PVR::CGUIDialogPVRRadioRDSInfo::OnInitWindow
void OnInitWindow() override
Called on window open.
Definition:
GUIDialogPVRRadioRDSInfo.cpp:128
CGUIDialog
Definition:
GUIDialog.h:35
CGUIMessage
Definition:
GUIMessage.h:365
Generated by
1.8.13