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// MythTV
11
12// MythFrontend
13#include "proginfolist.h"
14
16{
17 Q_OBJECT
18 public:
19 ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
20 : MythScreenType (parent, "progdetails"),
21 m_progInfo(*progInfo), m_infoList(*this) {}
22 ~ProgDetails() override;
23
24 bool Create(void) override; // MythScreenType
25 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
26
27 protected:
28 void Init(void) override; // MythScreenType
29
30 private:
31 static QString getRatings(bool recorded, uint chanid, const QDateTime& startts);
32 void updatePage(void);
33 void addItem(const QString &title, const QString &value,
35 void PowerPriorities(const QString & ptable);
36 void loadPage(void);
37
41};
42
43#endif
Screen in which all other widgets are contained and rendered.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static QString getRatings(bool recorded, uint chanid, const QDateTime &startts)
Definition: progdetails.cpp:39
ProgInfoList m_infoList
Definition: progdetails.h:39
void PowerPriorities(const QString &ptable)
void addItem(const QString &title, const QString &value, ProgInfoList::VisibleLevel level)
void updatePage(void)
ProgInfoList::DataList m_data
Definition: progdetails.h:40
~ProgDetails() override
Definition: progdetails.cpp:93
void loadPage(void)
ProgramInfo m_progInfo
Definition: progdetails.h:38
ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
Definition: progdetails.h:19
bool Create(void) override
Definition: progdetails.cpp:20
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
The info/details buttonlist overlay that displays key:data info.
Definition: proginfolist.h:13
QList< DataItem > DataList
Definition: proginfolist.h:21
Holds information on recordings and videos.
Definition: programinfo.h:74
unsigned int uint
Definition: compat.h:60
The info/details overlay.