From 84bd2b0925c8825b819b7b062d9f2a351f2e96b5 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 7 Mar 2011 17:44:05 +0100 Subject: Reworked code structure --- src/DownloadManager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/DownloadManager.cpp') diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp index d010490..600fed6 100644 --- a/src/DownloadManager.cpp +++ b/src/DownloadManager.cpp @@ -1,7 +1,11 @@ #include "DownloadManager.h" -void DownloadManager::downloadFile(QUrl& fileUrl) -{ +void DownloadManager::downloadFile(QString& filename){ + QUrl fileUrl; + fileUrl = baseURL.resolved(QUrl(filename)); + this->processDownloadRequest(fileUrl); +} +void DownloadManager::downloadFile(QUrl& fileUrl){ qDebug() << "Received downloadFile signal for:" << fileUrl; this->processDownloadRequest(fileUrl); } -- cgit v1.2.3-55-g7522