summaryrefslogtreecommitdiff
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
parentset (Untitled) to untitled pages.. (diff)
downloadrekonq-c77e839f7e3cc00858672c3a05a193fe81bceb05.tar.xz
Fixed Download Manager ctor
-rw-r--r--TODO2
-rw-r--r--src/download.cpp9
2 files changed, 9 insertions, 2 deletions
diff --git a/TODO b/TODO
index d685f5c8..b323b848 100644
--- a/TODO
+++ b/TODO
@@ -43,3 +43,5 @@ LONG TERM FIXES
- cookies
- history (io-slave)
- file protocol view
+
+- new bookmarks system
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())