summaryrefslogtreecommitdiffstats
path: root/src/fbbrowser.h
blob: 926cd6cf164755d5a04de605c0c5b462b7a27973 (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
#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 QMainWindow
{
    Q_OBJECT

public:
    fbbrowser(const QUrl& url);
    ~fbbrowser();

private:
    QUrl baseUrl;
    QNetworkRequest request;
    QNetworkReply *reply;
    QWebView *view;
    QWebFrame* qwf;
    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