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
ProgDetails::m_progInfo
ProgramInfo m_progInfo
Definition: progdetails.h:36
ProgDetails::~ProgDetails
~ProgDetails() override
Definition: progdetails.cpp:92
ProgDetails::addItem
void addItem(const QString &title, const QString &value, ProgInfoList::VisibleLevel level)
Definition: progdetails.cpp:110
ProgDetails::updatePage
void updatePage(void)
Definition: progdetails.cpp:102
ProgInfoList
The info/details buttonlist overlay that displays key:data info.
Definition: proginfolist.h:12
MythScreenStack
Definition: mythscreenstack.h:16
ProgDetails::Create
bool Create(void) override
Definition: progdetails.cpp:19
proginfolist.h
The info/details overlay.
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
ProgDetails::PowerPriorities
void PowerPriorities(const QString &ptable)
Definition: progdetails.cpp:154
ProgDetails
Definition: progdetails.h:15
ProgDetails::getRatings
static QString getRatings(bool recorded, uint chanid, const QDateTime &startts)
Definition: progdetails.cpp:38
ProgDetails::loadPage
void loadPage(void)
Definition: progdetails.cpp:322
programinfo.h
ProgDetails::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: progdetails.cpp:97
ProgDetails::m_data
ProgInfoList::DataList m_data
Definition: progdetails.h:38
ProgInfoList::DataList
QList< DataItem > DataList
Definition: proginfolist.h:21
ProgDetails::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: progdetails.cpp:119
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
ProgDetails::ProgDetails
ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo)
Definition: progdetails.h:19
ProgDetails::m_infoList
ProgInfoList m_infoList
Definition: progdetails.h:37
mythscreentype.h
ProgInfoList::VisibleLevel
VisibleLevel
Definition: proginfolist.h:17
uint
unsigned int uint
Definition: freesurround.h:24