MythTV master
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
12
13// MythFrontend
14#include "schedulecommon.h"
15
16class TV;
17class Timer;
18
19class MythUIText;
20class MythUIStateType;
23
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 void customEvent(QEvent *event) override; // ScheduleCommon
43
44 protected slots:
46 void deleteRule();
48 void SwitchList(void);
49 void Close(void) override; // MythScreenType
50
51 protected:
52 void Load(void) override; // MythScreenType
53 void Init(void) override; // MythScreenType
54 ProgramInfo *GetCurrentProgram(void) const override; // ScheduleCommon
55
56 private:
57 void FillList(void);
58 void LoadList(bool useExistingData = false);
59 void setShowAll(bool all);
60 void viewInputs(void);
61
62 void EmbedTVWindow(void);
63
65 ProgramInfo *pginfo) const;
67
68 bool m_conflictBool {false};
70
71 QRect m_tvRect;
72
76
77 bool m_showAll {false};
78
79 bool m_inEvent {false};
80 bool m_inFill {false};
81 bool m_needFill {false};
82
83 int m_listPos {0};
85 QMap<QDate, ProgramList> m_recgroupList;
86
89
90 QMap<int, int> m_inputref;
93
94 TV *m_player {nullptr};
95};
96
97#endif
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Progress bar widget.
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
Holds information on recordings and videos.
Definition: programinfo.h:68
Control TV playback.
Definition: tv_play.h:156
Screen for viewing and managing upcoming and conflicted recordings.
Definition: viewscheduled.h:30
ProgramList m_recList
Definition: viewscheduled.h:84
MythUIButtonList * m_groupList
Definition: viewscheduled.h:74
static void CalcRecordedPercent(ProgramInfo &pg)
void SwitchList(void)
QMap< QDate, ProgramList > m_recgroupList
Definition: viewscheduled.h:85
~ViewScheduled() override
ProgramInfo * GetCurrentProgram(void) const override
void ChangeGroup(MythUIButtonListItem *item)
void updateInfo(MythUIButtonListItem *item)
bool Create(void) override
void customEvent(QEvent *event) override
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
void Close(void) override
void setShowAll(bool all)
QDate m_defaultGroup
Definition: viewscheduled.h:88
void ShowMenu(void) override
void FillList(void)
static void * RunViewScheduled(void *player, bool showTv)
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
QMap< int, int > m_inputref
Definition: viewscheduled.h:90
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythUIProgressBar * m_progressBar
Definition: viewscheduled.h:75
void UpdateUIListItem(MythUIButtonListItem *item, ProgramInfo *pginfo) const
void viewInputs(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void LoadList(bool useExistingData=false)
QDate m_conflictDate
Definition: viewscheduled.h:69
QDate m_currentGroup
Definition: viewscheduled.h:87
MythUIButtonList * m_schedulesList
Definition: viewscheduled.h:73
void EmbedTVWindow(void)
unsigned int uint
Definition: freesurround.h:24