summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/SysInfo.cpp31
-rw-r--r--src/SysInfo.h15
-rw-r--r--src/fbgui.pro6
3 files changed, 3 insertions, 49 deletions
diff --git a/src/SysInfo.cpp b/src/SysInfo.cpp
deleted file mode 100644
index 9ac02eb..0000000
--- a/src/SysInfo.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <QString>
-#include <QTime>
-#include "SysInfo.h"
-
-extern bool debug;
-
-SysInfo::SysInfo(){}
-SysInfo::~SysInfo(){}
-QString SysInfo::getInfo(QString& infoName){
- if (infoName == QString("time"))
- return getTime();
- if (infoName == QString("MAC"))
- return getMACAddress();
-}
-QString SysInfo::getTime(){
- return QTime::currentTime().toString("hh:mm:ss");
-}
-QString SysInfo::getMACAddress(){
- QNetworkInterface *qNetI = new QNetworkInterface();
- QList<QNetworkInterface> list;
- list=qNetI->allInterfaces();
- QString str;
- QString macAddress;
- for (int i = 0; i < list.size(); ++i) {
- str = list.at(i).name();
- macAddress = list.at(i).hardwareAddress();
- if (debug) qDebug() << str << " : " << macAddress;
- }
- return macAddress;
-}
-
diff --git a/src/SysInfo.h b/src/SysInfo.h
deleted file mode 100644
index cacb7ff..0000000
--- a/src/SysInfo.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef SYSTEMINFO_H
-#define SYSTEMINFO_H
-
-class SysInfo {
- public:
- SysInfo();
- ~SysInfo();
- QString getInfo(QString& infoName);
-
- private:
- QString getTime();
- QString getMACAddress();
-}
-
-#endif // SYSTEMINFO_H
diff --git a/src/fbgui.pro b/src/fbgui.pro
index 5c6bae3..4c065de 100644
--- a/src/fbgui.pro
+++ b/src/fbgui.pro
@@ -9,11 +9,11 @@ QT += core \
HEADERS += fbgui.h \
JSObject.h \
DownloadManager.h \
- SysInfo.h
+ sysInfo.h
SOURCES += main.cpp \
fbgui.cpp \
JSObject.cpp \
DownloadManager.cpp \
- SysInfo.cpp
-FORMS += fbbrowser.ui
+ sysInfo.cpp
+FORMS +=
RESOURCES += fbgui.qrc