summaryrefslogtreecommitdiffstats
path: root/fbbrowser/fbbrowser.h
blob: c869197aec08750b5e30d5b110ee21a0a52f2560 (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
#ifndef FBBROWSER_H
#define FBBROWSER_H

#include <QtGui>
#include "ui_fbbrowser.h"
#include <QtNetwork>

class QWebView;
//QT_BEGIN_NAMESPACE
//class QLineEdit;
//QT_END_NAMESPACE

class fbbrowser : public QMainWindow
{
    Q_OBJECT

public:
    fbbrowser(const QUrl& url);
    ~fbbrowser();
    void printusage();
    Q_INVOKABLE void writeText(QString text); //used for writing web content into a file
    Q_INVOKABLE void quitAll();

private:
    QUrl url;
    QNetworkRequest request;
    QNetworkReply *reply;
    QWebView * view;
    QNetworkAccessManager * manager;
    //QApplication * app(int & argc, char ** argv);

private slots:
        void httpReadyRead();
	void addJSObject();

signals:
	void signalQuitAll();
};

#endif // FBBROWSER_H