summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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())