1 #ifndef WEBVIEW_H
2 #define WEBVIEW_H
3 
4 
5 #include <QWebView>
6 #include "cookiejar.h"
7 
8 
9 class WebView : public QWebView
10 {
11         Q_OBJECT
12 
13     public:
14         explicit WebView(QWidget *parent = 0, CookieJar *cookieJar = 0);
15         ~WebView();
16 
17     protected:
18         QString storagePath;
19 
20     private:
21         void setStoragePath();
22         void setCookies();
23 
24         CookieJar *cookieJar;
25         QUrl lastUrl;
26 
27     private slots:
28 	void onUrlChanged(QUrl);
29 	void featureRequest(QWebFrame *frame, QWebPage::Feature feature);
30 };
31 
32 #endif // WEBVIEW_H
33