/
webpage.h
53 lines (39 loc) · 1.11 KB
/
webpage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef WEBPAGE_H
#define WEBPAGE_H
// qt
#include <QUrl>
// myth
#include <mythuiwebbrowser.h>
#include <mythuibuttonlist.h>
#include <mythscreentype.h>
#include <mythdialogbox.h>
#include <mythuiprogressbar.h>
class MythBrowser;
class WebPage : public QObject
{
Q_OBJECT
public:
WebPage (MythBrowser *parent, QRect area, const char* name);
WebPage (MythBrowser *parent, MythUIWebBrowser *browser);
~WebPage();
void SetActive(bool active);
MythUIWebBrowser *getBrowser() { return m_browser; }
MythUIButtonListItem *getListItem() { return m_listItem; }
signals:
void loadProgress(int progress);
void statusBarMessage(const QString &text);
protected slots:
void slotLoadStarted(void);
void slotLoadFinished(bool OK);
void slotLoadProgress(int progress);
void slotTitleChanged(const QString &title);
void slotStatusBarMessage(const QString &text);
void slotIconChanged(void);
protected:
private:
bool m_active;
MythBrowser *m_parent;
MythUIWebBrowser *m_browser;
MythUIButtonListItem *m_listItem;
};
#endif