summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-06 17:10:29 +0100
committerJonathan Bauer2011-03-06 17:10:29 +0100
commit0193e902466857b2b81e2b35cf172b314a10a6b2 (patch)
treed64e7bc4df8736da1120985270729132bc43996e /src/fbgui.cpp
parentcleaned includes a bit (diff)
downloadfbgui-0193e902466857b2b81e2b35cf172b314a10a6b2.tar.gz
fbgui-0193e902466857b2b81e2b35cf172b314a10a6b2.tar.xz
fbgui-0193e902466857b2b81e2b35cf172b314a10a6b2.zip
baseUrl is now global variable
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()
{