summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index 25bec8c..2303844 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -3,22 +3,32 @@
#include <iostream>
#include <QUrl>
+#include <QMap>
-void fbgui::setUrl(QUrl& url)
+QUrl baseUrl;
+
+// Function not yet used, depends how settings will be loaded.
+void fbgui::setOption(QString key, QString value)
{
- this->_url=url;
+ 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(_url);
- QObject::connect(_fbb, SIGNAL(killApp()), this->parent(), SLOT(quit()));
+ _fbb = new fbbrowser();
+ QObject::connect(_fbb, SIGNAL(killApp()), this->parent(), SLOT(quit()));
}
fbgui::fbgui()
{
- _fbb = NULL;
- _url = "";
+ _fbb = NULL;
}
fbgui::~fbgui()
{