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
10 #include "schedulecommon.h"
11 #include "mythscreentype.h"
12 #include "programinfo.h"
13 
14 class TV;
15 class Timer;
16 
17 class MythUIText;
18 class MythUIStateType;
19 class MythUIButtonList;
21 
28 {
29  Q_OBJECT
30  public:
31  explicit ViewScheduled(MythScreenStack *parent, TV *player = nullptr,
32  bool showTV = false);
33  ~ViewScheduled() override;
34 
35  static void * RunViewScheduled(void *player, bool showTv);
36 
37  bool Create(void) override; // MythScreenType
38  void ShowMenu(void) override; // MythScreenType
39  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
40  void customEvent(QEvent *event) override; // ScheduleCommon
41 
42  protected slots:
44  void deleteRule();
45  void updateInfo(MythUIButtonListItem *item);
46  void SwitchList(void);
47  void Close(void) override; // MythScreenType
48 
49  protected:
50  void Load(void) override; // MythScreenType
51  void Init(void) override; // MythScreenType
52  ProgramInfo *GetCurrentProgram(void) const override; // ScheduleCommon
53 
54  private:
55  void FillList(void);
56  void LoadList(bool useExistingData = false);
57  void setShowAll(bool all);
58  void viewInputs(void);
59 
60  void EmbedTVWindow(void);
61 
62  bool m_conflictBool {false};
64 
65  QRect m_tvRect;
66 
69 
70  bool m_showAll {false};
71 
72  bool m_inEvent {false};
73  bool m_inFill {false};
74  bool m_needFill {false};
75 
76  int m_listPos {0};
78  QMap<QDate, ProgramList> m_recgroupList;
79 
82 
83  QMap<int, int> m_inputref;
86 
87  TV *m_player {nullptr};
88 };
89 
90 #endif
ViewScheduled::GetCurrentProgram
ProgramInfo * GetCurrentProgram(void) const override
Definition: viewscheduled.cpp:676
ViewScheduled::m_currentGroup
QDate m_currentGroup
Definition: viewscheduled.h:80
slots
std::array< unsigned int, 4 > slots
Definition: element.cpp:38
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:111
ViewScheduled::Close
void Close(void) override
Definition: viewscheduled.cpp:116
ViewScheduled::m_needFill
bool m_needFill
Definition: viewscheduled.h:74
ViewScheduled::m_defaultGroup
QDate m_defaultGroup
Definition: viewscheduled.h:81
ViewScheduled::m_curinput
uint m_curinput
Definition: viewscheduled.h:85
ViewScheduled::m_inputref
QMap< int, int > m_inputref
Definition: viewscheduled.h:83
ViewScheduled::ViewScheduled
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
Definition: viewscheduled.cpp:45
MythScreenStack
Definition: mythscreenstack.h:16
ViewScheduled::deleteRule
void deleteRule()
Definition: viewscheduled.cpp:514
ViewScheduled::SwitchList
void SwitchList(void)
Definition: viewscheduled.cpp:125
ViewScheduled::m_showAll
bool m_showAll
Definition: viewscheduled.h:70
schedulecommon.h
ViewScheduled::m_player
TV * m_player
Definition: viewscheduled.h:87
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:106
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
ViewScheduled::m_schedulesList
MythUIButtonList * m_schedulesList
Definition: viewscheduled.h:67
programinfo.h
ViewScheduled::Create
bool Create(void) override
Definition: viewscheduled.cpp:66
ViewScheduled::m_inFill
bool m_inFill
Definition: viewscheduled.h:73
ViewScheduled::EmbedTVWindow
void EmbedTVWindow(void)
Definition: viewscheduled.cpp:568
ScheduleCommon
Definition: schedulecommon.h:16
ViewScheduled::m_recgroupList
QMap< QDate, ProgramList > m_recgroupList
Definition: viewscheduled.h:78
uint
unsigned int uint
Definition: compat.h:140
ViewScheduled::m_recList
ProgramList m_recList
Definition: viewscheduled.h:77
ViewScheduled::m_groupList
MythUIButtonList * m_groupList
Definition: viewscheduled.h:68
ViewScheduled::ShowMenu
void ShowMenu(void) override
Definition: viewscheduled.cpp:197
ViewScheduled::m_conflictDate
QDate m_conflictDate
Definition: viewscheduled.h:63
ViewScheduled::RunViewScheduled
static void * RunViewScheduled(void *player, bool showTv)
Definition: viewscheduled.cpp:32
ViewScheduled::setShowAll
void setShowAll(bool all)
Definition: viewscheduled.cpp:548
AutoDeleteDeque< ProgramInfo * >
ViewScheduled::m_maxinput
uint m_maxinput
Definition: viewscheduled.h:84
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:68
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
ViewScheduled::customEvent
void customEvent(QEvent *event) override
Definition: viewscheduled.cpp:574
ViewScheduled::m_listPos
int m_listPos
Definition: viewscheduled.h:76
ViewScheduled::m_inEvent
bool m_inEvent
Definition: viewscheduled.h:72
ViewScheduled::m_conflictBool
bool m_conflictBool
Definition: viewscheduled.h:62
ViewScheduled
Screen for viewing and managing upcoming and conflicted recordings.
Definition: viewscheduled.h:28
ViewScheduled::~ViewScheduled
~ViewScheduled() override
Definition: viewscheduled.cpp:53
ViewScheduled::LoadList
void LoadList(bool useExistingData=false)
Definition: viewscheduled.cpp:230
ViewScheduled::m_tvRect
QRect m_tvRect
Definition: viewscheduled.h:65
ViewScheduled::updateInfo
void updateInfo(MythUIButtonListItem *item)
Definition: viewscheduled.cpp:492
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
ViewScheduled::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: viewscheduled.cpp:133
ViewScheduled::viewInputs
void viewInputs(void)
Definition: viewscheduled.cpp:554
ViewScheduled::ChangeGroup
void ChangeGroup(MythUIButtonListItem *item)
Definition: viewscheduled.cpp:363
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called.
Definition: mythuistatetype.h:23
mythscreentype.h
ViewScheduled::FillList
void FillList(void)
Definition: viewscheduled.cpp:376
TV
Control TV playback.
Definition: tv_play.h:281