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);
34 
35  static void * RunViewScheduled(void *player, bool);
36 
37  bool Create(void) override; // MythScreenType
38  void ShowMenu(void) override; // MythScreenType
39  bool keyPressEvent(QKeyEvent *) override; // MythScreenType
40  void customEvent(QEvent*) override; // ScheduleCommon
41 
42  protected slots:
44  void deleteRule();
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
This widget is used for grouping other widgets for display when a particular named state is called.
void ChangeGroup(MythUIButtonListItem *item)
unsigned int slots[4]
Definition: element.c:38
void ShowMenu(void) override
QDate m_conflictDate
Definition: viewscheduled.h:63
void LoadList(bool useExistingData=false)
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
void setShowAll(bool all)
ProgramInfo * GetCurrentProgram(void) const override
unsigned int uint
Definition: compat.h:140
void FillList(void)
void SwitchList(void)
Holds information on recordings and videos.
Definition: programinfo.h:66
static void * RunViewScheduled(void *player, bool)
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
void viewInputs(void)
QMap< int, int > m_inputref
Definition: viewscheduled.h:83
Screen for viewing and managing upcoming and conflicted recordings.
Definition: viewscheduled.h:27
Control TV playback.
Definition: tv_play.h:284
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
QDate m_defaultGroup
Definition: viewscheduled.h:81
void EmbedTVWindow(void)
QDate m_currentGroup
Definition: viewscheduled.h:80
MythUIButtonList * m_schedulesList
Definition: viewscheduled.h:67
MythUIButtonList * m_groupList
Definition: viewscheduled.h:68
void customEvent(QEvent *) override
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
QMap< QDate, ProgramList > m_recgroupList
Definition: viewscheduled.h:78
ProgramList m_recList
Definition: viewscheduled.h:77
void updateInfo(MythUIButtonListItem *)
bool Create(void) override
bool keyPressEvent(QKeyEvent *) override
Key event handler.
void Close(void) override