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 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/SysInfo.cpp (limited to 'src/SysInfo.cpp') 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; -} - -- cgit v1.2.3-55-g7522