summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fbgui.cpp6
-rw-r--r--src/main.cpp5
-rw-r--r--src/sysInfo.cpp4
-rw-r--r--src/sysInfo.h2
4 files changed, 8 insertions, 9 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index 821c05f..0524e5c 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -4,10 +4,14 @@
#include <iostream>
#include <QUrl>
-#include <QMap>
+#include <QDir>
#include <QtWebKit>
#include <QApplication>
+QUrl baseURL(DEFAULT_URL);
+QDir downloadDirectory("./downloads/");
+bool debug = false;
+
fbgui::fbgui(QApplication *parent)
{
/* Browser init. */
diff --git a/src/main.cpp b/src/main.cpp
index 4e6627b..2897403 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,11 +6,6 @@
#include <iostream>
#include "fbgui.h"
-
-QUrl baseURL(DEFAULT_URL);
-QDir downloadDirectory("./downloads/");
-bool debug = false;
-
void printHelp()
{
// Prints usage information.
diff --git a/src/sysInfo.cpp b/src/sysInfo.cpp
index 1866c27..c9dfa76 100644
--- a/src/sysInfo.cpp
+++ b/src/sysInfo.cpp
@@ -3,8 +3,6 @@
#include <QTime>
#include <QNetworkInterface>
-extern bool debug;
-
sysInfo::sysInfo(){}
sysInfo::~sysInfo(){}
QString sysInfo::getInfo(QString& infoName){
@@ -13,6 +11,8 @@ QString sysInfo::getInfo(QString& infoName){
return getTime();
if (infoName == QString("MAC"))
return getMACAddress();
+ // still here? --> error
+ return "error";
}
QString sysInfo::getTime(){
return QTime::currentTime().toString("hh:mm:ss");
diff --git a/src/sysInfo.h b/src/sysInfo.h
index ced1d56..dc25a92 100644
--- a/src/sysInfo.h
+++ b/src/sysInfo.h
@@ -1,6 +1,6 @@
#ifndef SYSINFO_H
#define SYSINFO_H
-
+#include "fbgui.h"
#include <QString>
class sysInfo {