MythTV  master
webpage.h
Go to the documentation of this file.
1 #ifndef WEBPAGE_H
2 #define WEBPAGE_H
3 
4 // qt
5 #include <QUrl>
6 
7 // myth
8 #include <mythuiwebbrowser.h>
9 #include <mythuibuttonlist.h>
10 #include <mythscreentype.h>
11 #include <mythdialogbox.h>
12 #include <mythuiprogressbar.h>
13 
14 class MythBrowser;
15 
16 class WebPage : public QObject
17 {
18  Q_OBJECT
19 
20  public:
21  WebPage (MythBrowser *parent, QRect area, const char* name);
22  WebPage (MythBrowser *parent, MythUIWebBrowser *browser);
23 
24  ~WebPage();
25 
26  void SetActive(bool active);
27 
30 
31  signals:
32  void loadProgress(int progress);
33  void statusBarMessage(const QString &text);
34  void loadFinished(bool OK);
35 
36  protected slots:
37  void slotLoadStarted(void);
38  void slotLoadFinished(bool OK);
39  void slotLoadProgress(int progress);
40  void slotTitleChanged(const QString &title);
41  void slotStatusBarMessage(const QString &text);
42  void slotIconChanged(void);
43 
44  protected:
45 
46  private:
47  bool m_active {false};
48 
49  MythBrowser *m_parent {nullptr};
52 };
53 
54 #endif
MythUIButtonListItem * getListItem()
Definition: webpage.h:29
unsigned int slots[4]
Definition: element.c:38
#define OK
Definition: dvbci.cpp:69
void slotTitleChanged(const QString &title)
Definition: webpage.cpp:155
void statusBarMessage(const QString &text)
bool m_active
Definition: webpage.h:47
void loadProgress(int progress)
void SetActive(bool active)
Definition: webpage.cpp:77
void loadFinished(bool OK)
MythUIWebBrowser * getBrowser()
Definition: webpage.h:28
~WebPage()
Definition: webpage.cpp:61
void slotLoadStarted(void)
Definition: webpage.cpp:122
void slotStatusBarMessage(const QString &text)
Definition: webpage.cpp:149
const char * name
Definition: ParseText.cpp:328
void slotIconChanged(void)
Definition: webpage.cpp:93
MythBrowser * m_parent
Definition: webpage.h:49
MythUIWebBrowser * m_browser
Definition: webpage.h:50
void slotLoadProgress(int progress)
Definition: webpage.cpp:143
WebPage(MythBrowser *parent, QRect area, const char *name)
Definition: webpage.cpp:18
Web browsing widget.
void slotLoadFinished(bool OK)
Definition: webpage.cpp:132
MythUIButtonListItem * m_listItem
Definition: webpage.h:51