diff options
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/download.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -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()) |