MythTV
master
mythtv
programs
mythfrontend
viewscheduled.h
Go to the documentation of this file.
1
#ifndef VIEWSCHEDULED_H_
2
#define VIEWSCHEDULED_H_
3
4
// QT
5
#include <QDateTime>
6
#include <QString>
7
#include <QMap>
8
9
// MythTV
10
#include "
libmythtv/programinfo.h
"
11
#include "
libmythui/mythscreentype.h
"
12
13
// MythFrontend
14
#include "
schedulecommon.h
"
15
16
class
TV
;
17
class
Timer;
18
19
class
MythUIText
;
20
class
MythUIStateType
;
21
class
MythUIButtonList
;
22
class
MythUIButtonListItem
;
23
29
class
ViewScheduled
:
public
ScheduleCommon
30
{
31
Q_OBJECT
32
public
:
33
explicit
ViewScheduled
(
MythScreenStack
*parent,
TV
*player =
nullptr
,
34
bool
showTV =
false
);
35
~ViewScheduled
()
override
;
36
37
static
void
*
RunViewScheduled
(
void
*player,
bool
showTv);
38
39
bool
Create
(
void
)
override
;
// MythScreenType
40
void
ShowMenu
(
void
)
override
;
// MythScreenType
41
bool
keyPressEvent
(QKeyEvent *event)
override
;
// MythScreenType
42
public
slots:
43
void
Close
(
void
)
override
;
// MythScreenType
44
45
protected
slots:
46
void
ChangeGroup
(
MythUIButtonListItem
*item);
47
void
deleteRule
();
48
void
updateInfo
(
MythUIButtonListItem
*item);
49
void
SwitchList
(
void
);
50
51
protected
:
52
void
customEvent
(QEvent *event)
override
;
// ScheduleCommon
53
void
Load
(
void
)
override
;
// MythScreenType
54
void
Init
(
void
)
override
;
// MythScreenType
55
ProgramInfo
*
GetCurrentProgram
(
void
)
const override
;
// ScheduleCommon
56
57
private
:
58
void
FillList
(
void
);
59
void
LoadList
(
bool
useExistingData =
false
);
60
void
setShowAll
(
bool
all);
61
void
viewInputs
(
void
);
62
63
void
EmbedTVWindow
(
void
);
64
65
void
UpdateUIListItem
(
MythUIButtonListItem
* item,
66
ProgramInfo
*pginfo)
const
;
67
static
void
CalcRecordedPercent
(
ProgramInfo
&pg);
68
69
bool
m_conflictBool
{
false
};
70
QDate
m_conflictDate
;
71
72
QRect
m_tvRect
;
73
74
MythUIButtonList
*
m_schedulesList
{
nullptr
};
75
MythUIButtonList
*
m_groupList
{
nullptr
};
76
MythUIProgressBar
*
m_progressBar
{
nullptr
};
77
78
bool
m_showAll
{
false
};
79
80
bool
m_inEvent
{
false
};
81
bool
m_inFill
{
false
};
82
bool
m_needFill
{
false
};
83
84
int
m_listPos
{0};
85
ProgramList
m_recList
;
86
QMap<QDate, ProgramList>
m_recgroupList
;
87
88
QDate
m_currentGroup
;
89
QDate
m_defaultGroup
;
90
91
QMap<int, int>
m_inputref
;
92
uint
m_maxinput
{0};
93
uint
m_curinput
{0};
94
95
TV
*
m_player
{
nullptr
};
96
};
97
98
#endif
AutoDeleteDeque< ProgramInfo * >
MythScreenStack
Definition:
mythscreenstack.h:17
MythUIButtonListItem
Definition:
mythuibuttonlist.h:43
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:195
MythUIProgressBar
Progress bar widget.
Definition:
mythuiprogressbar.h:13
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called.
Definition:
mythuistatetype.h:23
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:74
ScheduleCommon
Definition:
schedulecommon.h:17
TV
Control TV playback.
Definition:
tv_play.h:157
ViewScheduled
Screen for viewing and managing upcoming and conflicted recordings.
Definition:
viewscheduled.h:30
ViewScheduled::m_recList
ProgramList m_recList
Definition:
viewscheduled.h:85
ViewScheduled::m_listPos
int m_listPos
Definition:
viewscheduled.h:84
ViewScheduled::m_groupList
MythUIButtonList * m_groupList
Definition:
viewscheduled.h:75
ViewScheduled::CalcRecordedPercent
static void CalcRecordedPercent(ProgramInfo &pg)
ViewScheduled::SwitchList
void SwitchList(void)
Definition:
viewscheduled.cpp:123
ViewScheduled::m_maxinput
uint m_maxinput
Definition:
viewscheduled.h:92
ViewScheduled::m_showAll
bool m_showAll
Definition:
viewscheduled.h:78
ViewScheduled::m_recgroupList
QMap< QDate, ProgramList > m_recgroupList
Definition:
viewscheduled.h:86
ViewScheduled::~ViewScheduled
~ViewScheduled() override
Definition:
viewscheduled.cpp:50
ViewScheduled::GetCurrentProgram
ProgramInfo * GetCurrentProgram(void) const override
Definition:
viewscheduled.cpp:747
ViewScheduled::ChangeGroup
void ChangeGroup(MythUIButtonListItem *item)
Definition:
viewscheduled.cpp:371
ViewScheduled::m_conflictBool
bool m_conflictBool
Definition:
viewscheduled.h:69
ViewScheduled::updateInfo
void updateInfo(MythUIButtonListItem *item)
Definition:
viewscheduled.cpp:516
ViewScheduled::Create
bool Create(void) override
Definition:
viewscheduled.cpp:63
ViewScheduled::customEvent
void customEvent(QEvent *event) override
Definition:
viewscheduled.cpp:600
ViewScheduled::ViewScheduled
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
Definition:
viewscheduled.cpp:40
ViewScheduled::Close
void Close(void) override
Definition:
viewscheduled.cpp:114
ViewScheduled::setShowAll
void setShowAll(bool all)
Definition:
viewscheduled.cpp:574
ViewScheduled::m_player
TV * m_player
Definition:
viewscheduled.h:95
ViewScheduled::m_defaultGroup
QDate m_defaultGroup
Definition:
viewscheduled.h:89
ViewScheduled::m_curinput
uint m_curinput
Definition:
viewscheduled.h:93
ViewScheduled::ShowMenu
void ShowMenu(void) override
Definition:
viewscheduled.cpp:195
ViewScheduled::FillList
void FillList(void)
Definition:
viewscheduled.cpp:440
ViewScheduled::RunViewScheduled
static void * RunViewScheduled(void *player, bool showTv)
Definition:
viewscheduled.cpp:27
ViewScheduled::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
viewscheduled.cpp:104
ViewScheduled::m_inputref
QMap< int, int > m_inputref
Definition:
viewscheduled.h:91
ViewScheduled::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
viewscheduled.cpp:109
ViewScheduled::m_progressBar
MythUIProgressBar * m_progressBar
Definition:
viewscheduled.h:76
ViewScheduled::deleteRule
void deleteRule()
Definition:
viewscheduled.cpp:540
ViewScheduled::UpdateUIListItem
void UpdateUIListItem(MythUIButtonListItem *item, ProgramInfo *pginfo) const
Definition:
viewscheduled.cpp:384
ViewScheduled::viewInputs
void viewInputs(void)
Definition:
viewscheduled.cpp:580
ViewScheduled::m_inEvent
bool m_inEvent
Definition:
viewscheduled.h:80
ViewScheduled::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
viewscheduled.cpp:131
ViewScheduled::LoadList
void LoadList(bool useExistingData=false)
Definition:
viewscheduled.cpp:228
ViewScheduled::m_conflictDate
QDate m_conflictDate
Definition:
viewscheduled.h:70
ViewScheduled::m_needFill
bool m_needFill
Definition:
viewscheduled.h:82
ViewScheduled::m_currentGroup
QDate m_currentGroup
Definition:
viewscheduled.h:88
ViewScheduled::m_tvRect
QRect m_tvRect
Definition:
viewscheduled.h:72
ViewScheduled::m_schedulesList
MythUIButtonList * m_schedulesList
Definition:
viewscheduled.h:74
ViewScheduled::EmbedTVWindow
void EmbedTVWindow(void)
Definition:
viewscheduled.cpp:594
ViewScheduled::m_inFill
bool m_inFill
Definition:
viewscheduled.h:81
uint
unsigned int uint
Definition:
compat.h:60
mythscreentype.h
programinfo.h
schedulecommon.h
Generated on Tue Jul 28 2026 03:18:44 for MythTV by
1.9.4