From 04bbbb2853a960e63753ddf68606e5f9cf26729a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 7 Mar 2011 22:56:06 +0100 Subject: .... --- src/SysInfo.cpp | 31 ------------------------------- src/SysInfo.h | 15 --------------- src/fbgui.pro | 6 +++--- 3 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 src/SysInfo.cpp delete mode 100644 src/SysInfo.h 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 -#include -#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 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 -- cgit v1.2.3-55-g7522