MythTV  master
Go to the documentation of this file.
1 #ifndef PROGDETAILS_H_
2 #define PROGDETAILS_H_
4 // qt
5 #include <QString>
6 #include <QKeyEvent>
8 // myth
9 #include "mythscreentype.h"
10 #include "programinfo.h"
11 #include "proginfolist.h"
14 {
16  public:
17  ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
18  : MythScreenType (parent, "progdetails"),
19  m_progInfo(*progInfo), m_infoList(*this) {}
20  ~ProgDetails() override;
22  bool Create(void) override; // MythScreenType
23  void Init(void) override; // MythScreenType
24  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
26  private:
27  static 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);
37 };
39 #endif
ProgInfoList m_infoList
Definition: progdetails.h:35
ProgramInfo m_progInfo
Definition: progdetails.h:34
~ProgDetails() override
Definition: progdetails.cpp:93
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:67
static 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
unsigned int uint
Definition: compat.h:140
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.