summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-18 01:42:29 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-18 01:42:29 +0200
commitc77e839f7e3cc00858672c3a05a193fe81bceb05 (patch)
tree6ff66013d1d953e5de340ec4ea5c587a0834ea1e /src
parentset (Untitled) to untitled pages.. (diff)
downloadrekonq-c77e839f7e3cc00858672c3a05a193fe81bceb05.tar.xz
Fixed Download Manager ctor
Diffstat (limited to 'src')
-rw-r--r--src/download.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/download.cpp b/src/download.cpp
index 7edc8dc6..9de8dd36 100644
--- a/src/download.cpp
+++ b/src/download.cpp
@@ -29,9 +29,11 @@
#include <QFile>
#include <QFileInfo>
+
Download::Download(const KUrl &srcUrl, const KUrl &destUrl)
- : m_srcUrl(srcUrl),
- m_destUrl(destUrl)
+ : QObject()
+ , m_srcUrl(srcUrl)
+ , m_destUrl(destUrl)
{
kWarning() << "DownloadFile: " << m_srcUrl.url() << " to dest: " << m_destUrl.url();
m_copyJob = KIO::get(m_srcUrl);
@@ -39,16 +41,19 @@ Download::Download(const KUrl &srcUrl, const KUrl &destUrl)
connect(m_copyJob, SIGNAL(result(KJob *)), SLOT(slotResult(KJob *)));
}
+
Download::~Download()
{
}
+
void Download::slotData(KIO::Job *job, const QByteArray& data)
{
Q_UNUSED(job);
m_data.append(data);
}
+
void Download::slotResult(KJob * job)
{
switch (job->error())