00001 #ifndef PROGDETAILS_H_ 00002 #define PROGDETAILS_H_ 00003 00004 // qt 00005 #include <QString> 00006 #include <QKeyEvent> 00007 00008 // myth 00009 #include "mythscreentype.h" 00010 #include "mythuiwebbrowser.h" 00011 #include "programinfo.h" 00012 00013 class ProgDetails : public MythScreenType 00014 { 00015 Q_OBJECT 00016 public: 00017 ProgDetails(MythScreenStack *parent, const ProgramInfo *progInfo); 00018 ~ProgDetails(); 00019 00020 bool Create(void); 00021 bool keyPressEvent(QKeyEvent *event); 00022 void Init(void); 00023 00024 private: 00025 QString getRatings(bool recorded, uint chanid, QDateTime startts); 00026 void loadPage(void); 00027 void updatePage(void); 00028 bool loadHTML(void); 00029 void addItem(const QString &key, const QString &title, const QString &data); 00030 void removeItem(const QString &key); 00031 void showMenu(void); 00032 void customEvent(QEvent *event); 00033 00034 ProgramInfo m_progInfo; 00035 MythUIWebBrowser *m_browser; 00036 00037 int m_currentPage; 00038 QString m_page[2]; 00039 00040 QStringList m_html; 00041 }; 00042 00043 #endif
1.6.3