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