diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/DownloadManager.cpp | 4 | ||||
| -rw-r--r-- | src/sysInfo.cpp | 5 | ||||
| -rw-r--r-- | src/sysInfo.h | 1 |
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(); }; |
