blob: 991372b3266d8e140cc96116407e3a2838275834 (
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
|
#include "fbgui.h"
#include "fbbrowser.h"
#include <iostream>
#include <QUrl>
#include <QMap>
QUrl baseURL;
// Function not yet used, depends how settings will be loaded.
// Probably better to not use a member variable to save settings,
// rather process/set them in the main & use globals.
void fbgui::setOption(QString key, QString value)
{
if (!_options.contains(key))
_options.insert(key, value);
else
{
_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;
}
|