summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 03:34:57 +0100
committerJonathan Bauer2011-03-08 03:34:57 +0100
commit1e9db6e79e5efdc73bf850879c727665e3d6e149 (patch)
tree165505b76aee15b55f534fd1c8a1e56e055bdcda /src
parentmore (diff)
downloadfbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.tar.gz
fbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.tar.xz
fbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.zip
revmoed old test stuff
Diffstat (limited to 'src')
-rw-r--r--src/DownloadManager.cpp4
-rw-r--r--src/sysInfo.cpp5
-rw-r--r--src/sysInfo.h1
3 files changed, 2 insertions, 8 deletions
diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp
index 5d95afc..adda63e 100644
--- a/src/DownloadManager.cpp
+++ b/src/DownloadManager.cpp
@@ -52,7 +52,6 @@ void DownloadManager::startNextDownload()
startNextDownload();
return;
}
- if (debug) qDebug() << "Saving " << url.toString() << "to " << outfile.fileName();
// If error upon opening, skip this file.
if (!outfile.open(QIODevice::WriteOnly))
{
@@ -61,6 +60,7 @@ void DownloadManager::startNextDownload()
return;
}
// Start the request for this URL.
+ if (debug) qDebug() << "Saving " << url.toString() << "to " << outfile.fileName();
QNetworkRequest request(url);
currentDownload = qnam->get(request);
// TODO: Error handling not working properly...
@@ -80,7 +80,7 @@ void DownloadManager::startNextDownload()
// ----------------------------------------------------------------------------------------
// This slot listens to readyRead() emmited when data is available for reading.
void DownloadManager::downloadReady()
-{
+{
// readyRead() fired, so save the readable data.
outfile.write(currentDownload->readAll());
}
diff --git a/src/sysInfo.cpp b/src/sysInfo.cpp
index c9dfa76..b64fdce 100644
--- a/src/sysInfo.cpp
+++ b/src/sysInfo.cpp
@@ -7,16 +7,11 @@ sysInfo::sysInfo(){}
sysInfo::~sysInfo(){}
QString sysInfo::getInfo(QString& infoName){
if (debug) qDebug() << "sysInfo : getInfo(" << infoName << ")";
- if (infoName == QString("time"))
- return getTime();
if (infoName == QString("MAC"))
return getMACAddress();
// still here? --> error
return "error";
}
-QString sysInfo::getTime(){
- return QTime::currentTime().toString("hh:mm:ss");
-}
QString sysInfo::getMACAddress(){
QNetworkInterface *qNetI = new QNetworkInterface();
QList<QNetworkInterface> list;
diff --git a/src/sysInfo.h b/src/sysInfo.h
index dc25a92..e4a2354 100644
--- a/src/sysInfo.h
+++ b/src/sysInfo.h
@@ -10,7 +10,6 @@ class sysInfo {
QString getInfo(QString& infoName);
private:
- QString getTime();
QString getMACAddress();
};