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

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

class QWebView;
QT_BEGIN_NAMESPACE
//class QLineEdit;
QT_END_NAMESPACE

class fbbrowser : public QMainWindow
{
    Q_OBJECT

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

private:
    QWebView * view;
    //QApplication * app(int & argc, char ** argv);

private slots:
	void addJSObject();

signals:
	void signalQuitAll();
};

#endif // FBBROWSER_H