summaryrefslogtreecommitdiffstats
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-02-01 18:19:00 +0100
committerSebastian Schmelzer2011-02-01 18:19:00 +0100
commitacdd731bf92d6b3fb3b7c41c2954a6e07828651a (patch)
tree9126c17e01d4193a84dc04eb30cd4939ea111d22 /src/downloadmanager.cpp
parentcompiling version.... (diff)
downloadfbgui-acdd731bf92d6b3fb3b7c41c2954a6e07828651a.tar.gz
fbgui-acdd731bf92d6b3fb3b7c41c2954a6e07828651a.tar.xz
fbgui-acdd731bf92d6b3fb3b7c41c2954a6e07828651a.zip
fix vtable error
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
deleted file mode 100644
index bfaf22a..0000000
--- a/src/downloadmanager.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "downloadmanager.h"
-
-void DownloadManager::downloadFile(QString& filename)
-{
- this->filename = filename;
- this->reply = this->qnam->get(this->request);
- qiod = reply;
- QObject::connect(this->reply, SIGNAL(finished()), this, SLOT(saveData()));
-}
-
-void DownloadManager::saveData()
-{
- QFile outfile(this->filename);
- if (!outfile.open(QIODevice::WriteOnly))
- {
- qDebug() << "Couldnt open file! exiting...";
- exit(1);
- }
- outfile.write(this->reply->readAll());
- outfile.close();
-
-}
-
-void DownloadManager::setUrl(QUrl& qurl)
-{
- this->baseUrl = qurl;
-}
-
-void DownloadManager::print()
-{
- qDebug() << "The download manager is still working";
-}
-
-DownloadManager::DownloadManager()
-{
- this->qnam = new QNetworkAccessManager();
- this->request.setUrl(baseUrl);
-}
-
-DownloadManager::~DownloadManager()
-{
-}