diff options
| author | Jonathan Bauer | 2011-03-07 17:44:05 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-07 17:44:05 +0100 |
| commit | 84bd2b0925c8825b819b7b062d9f2a351f2e96b5 (patch) | |
| tree | eab941aa6ef3e52d4a2788a2c5f8b418fb4f5f26 /src/DownloadManager.cpp | |
| parent | webkitTest.html local loading of jQuery stuff (diff) | |
| download | fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.tar.gz fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.tar.xz fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.zip | |
Reworked code structure
Diffstat (limited to 'src/DownloadManager.cpp')
| -rw-r--r-- | src/DownloadManager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |
