blob: ace2eb9a7391d1b8d5afecdb5b865cf8559fb34e (
plain) (
blame)
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
|
#ifndef FBBROWSER_H
#define FBBROWSER_H
#include <QString>
#include <QtGui>
#include <QtWebKit>
#include "JSObject.h"
#include "DownloadManager.h"
class QWebView;
class QWebFrame;
class JSObject;
class DownloadManager;
class fbbrowser : public QWidget
{
Q_OBJECT
public:
fbbrowser(const QUrl& url);
~fbbrowser();
private:
QMainWindow *mw;
QWebView *view;
QWebFrame* qwf;
QUrl baseUrl;
QNetworkRequest request;
QNetworkReply *reply;
QNetworkAccessManager *manager;
//the jsObject. connection to the webpage for emiting signals
JSObject *jso;
DownloadManager* dm;
signals:
void downloadFile(QString filename);
void killApp();
public slots:
void quit();
};
#endif // FBBROWSER_H
|