summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
blob: 03de3b56960fabae7085179af06e08104ef363d6 (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
#include "fbgui.h"
#include "fbbrowser.h"
#include "DownloadManager.h"

#include <iostream>
#include <QUrl>

void fbgui::setUrl(QUrl& url)
{
	qDebug() << "Set URL to: " << url.toString();
	this->_url=url;
}

void fbgui::startBrowser()
{
    _fbb = new fbbrowser(_url);
    QObject::connect(_fbb, SIGNAL(killApp()), this->parent(), SLOT(quit()));
    //_fbb->show();
}

fbgui::fbgui()
{
    _fbb = NULL;
    _url = "";
}
fbgui::~fbgui()
{
	delete _fbb;
}