00001 #ifndef WEBPAGE_H 00002 #define WEBPAGE_H 00003 00004 // qt 00005 #include <QUrl> 00006 00007 // myth 00008 #include <mythuiwebbrowser.h> 00009 #include <mythuibuttonlist.h> 00010 #include <mythscreentype.h> 00011 #include <mythdialogbox.h> 00012 #include <mythuiprogressbar.h> 00013 00014 class MythBrowser; 00015 00016 class WebPage : public QObject 00017 { 00018 Q_OBJECT 00019 00020 public: 00021 WebPage (MythBrowser *parent, QRect area, const char* name); 00022 WebPage (MythBrowser *parent, MythUIWebBrowser *browser); 00023 00024 ~WebPage(); 00025 00026 void SetActive(bool active); 00027 00028 MythUIWebBrowser *getBrowser() { return m_browser; } 00029 MythUIButtonListItem *getListItem() { return m_listItem; } 00030 00031 signals: 00032 void loadProgress(int progress); 00033 void statusBarMessage(const QString &text); 00034 00035 protected slots: 00036 void slotLoadStarted(void); 00037 void slotLoadFinished(bool OK); 00038 void slotLoadProgress(int progress); 00039 void slotTitleChanged(const QString &title); 00040 void slotStatusBarMessage(const QString &text); 00041 void slotIconChanged(void); 00042 00043 protected: 00044 00045 private: 00046 bool m_active; 00047 00048 MythBrowser *m_parent; 00049 MythUIWebBrowser *m_browser; 00050 MythUIButtonListItem *m_listItem; 00051 }; 00052 00053 #endif
1.6.3