1 |
|
|
2 |
#ifndef MYWEBVIEW_H |
#ifndef WEBVIEW_H |
3 |
#define MYWEBVIEW_H |
#define WEBVIEW_H |
4 |
|
|
5 |
#include <QtWebKit> |
#include <QtWebKit> |
6 |
|
|
7 |
|
|
8 |
class MyWebView : public QWebView |
class WebView : public QWebView |
9 |
{ |
{ |
10 |
Q_OBJECT |
Q_OBJECT |
11 |
public: |
public: |
12 |
MyWebView(QWidget* parent); |
WebView(QWidget* parent); |
13 |
|
|
14 |
void start(); |
void start(QString url, QString screenid); |
15 |
|
|
16 |
void showError(const char* msg); |
void showError(const char* msg); |
17 |
|
|
18 |
QString generateUrl(); |
QString generateUrl(QString url, QString screenid); |
19 |
public slots: |
|
|
void onChange(bool success); |
|
|
void onTimer(); |
|
20 |
}; |
}; |
21 |
|
|
22 |
#endif //MYWEBVIEW_H |
#endif //WEBVIEW_H |