diff options
| author | Jonathan Bauer | 2011-03-07 22:56:06 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-07 22:56:06 +0100 |
| commit | 04bbbb2853a960e63753ddf68606e5f9cf26729a (patch) | |
| tree | 096a78ab4723d586d8abd14ed9e1e01f3ac766c3 | |
| parent | hello test.html (diff) | |
| download | fbgui-04bbbb2853a960e63753ddf68606e5f9cf26729a.tar.gz fbgui-04bbbb2853a960e63753ddf68606e5f9cf26729a.tar.xz fbgui-04bbbb2853a960e63753ddf68606e5f9cf26729a.zip | |
....
| -rw-r--r-- | src/SysInfo.cpp | 31 | ||||
| -rw-r--r-- | src/SysInfo.h | 15 | ||||
| -rw-r--r-- | src/fbgui.pro | 6 |
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 |
