MythTV  master
progdetails.h
Go to the documentation of this file.
1 #ifndef PROGDETAILS_H_
2 #define PROGDETAILS_H_
3 
4 // qt
5 #include <QString>
6 #include <QKeyEvent>
7 
8 // myth
9 #include "mythscreentype.h"
10 #include "programinfo.h"
11 #include "proginfolist.h"
12 
14 {
15  Q_OBJECT
16  public:
17  ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
18  : MythScreenType (parent, "progdetails"),
19  m_progInfo(*progInfo), m_infoList(*this) {}
20  ~ProgDetails();
21 
22  bool Create(void) override; // MythScreenType
23  void Init(void) override; // MythScreenType
24  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
25 
26  private:
27  QString getRatings(bool recorded, uint chanid, const QDateTime& startts);
28  void updatePage(void);
29  void addItem(const QString &title, const QString &value,
31  void PowerPriorities(const QString & ptable);
32  void loadPage(void);
33 
37 };
38 
39 #endif
ProgInfoList m_infoList
Definition: progdetails.h:35
ProgramInfo m_progInfo
Definition: progdetails.h:34
unsigned int uint
Definition: compat.h:140
void addItem(const QString &title, const QString &value, ProgInfoList::VisibleLevel level)
void updatePage(void)
bool Create(void) override
Definition: progdetails.cpp:20
The info/details buttonlist overlay that displays key:data info.
Definition: proginfolist.h:12
Holds information on recordings and videos.
Definition: programinfo.h:66
QString getRatings(bool recorded, uint chanid, const QDateTime &startts)
Definition: progdetails.cpp:39
void loadPage(void)
void PowerPriorities(const QString &ptable)
QList< DataItem > DataList
Definition: proginfolist.h:21
The info/details overlay.
ProgInfoList::DataList m_data
Definition: progdetails.h:36
ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
Definition: progdetails.h:17
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: progdetails.cpp:98
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Screen in which all other widgets are contained and rendered.