summaryrefslogblamecommitdiffstats
path: root/src/fbbrowser.h
blob: 926cd6cf164755d5a04de605c0c5b462b7a27973 (plain) (tree)
1
2
3
4
5
6
7
8
9


                   
                  
                



                            

               
                
               

                      






                                    

        
                 

                            
                   
                   
                                   
 
                                                                     
                      
                            
 
        
                                            



                       


                     
#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