summaryrefslogblamecommitdiffstats
path: root/src/fbgui.cpp
blob: 23038445a8fc2e520249f6a1d059a39b00b7e0f7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                  
                      
 
                   
               
               
 



                                                              
 







                                                   

 
                          
 

                                                                                



              
                    
 
               
 
                    
 
#include "fbgui.h"
#include "fbbrowser.h"

#include <iostream>
#include <QUrl>
#include <QMap>

QUrl baseUrl;

// Function not yet used, depends how settings will be loaded.
void fbgui::setOption(QString key, QString value)
{
	if (!_options.contains(key))
		_options.insert(key, value);
	else
	{
		// temp, find a better way for this
		_options.remove(key);
		_options.insert(key, value);
	}
}

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

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