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 void Init(void) override; // MythScreenType
26 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
27
28 private:
29 static QString getRatings(bool recorded, uint chanid, const QDateTime& startts);
30 void updatePage(void);
31 void addItem(const QString &title, const QString &value,
33 void PowerPriorities(const QString & ptable);
34 void loadPage(void);
35
39};
40
41#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:37
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:38
~ProgDetails() override
Definition: progdetails.cpp:93
void loadPage(void)
ProgramInfo m_progInfo
Definition: progdetails.h:36
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:68
unsigned int uint
Definition: freesurround.h:24
The info/details overlay.