#include "fbgui.h" #include "fbbrowser.h" #include #include #include 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; }