summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-20 19:03:00 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-20 19:03:00 +0100
commit504311e2a45c18e08865269985f00f7f3f3e6e8a (patch)
treef746c8b9a6becec92d023a112b3dc3e8e133cc65 /src/webview.cpp
parentUpdated TODO && CMakelists.txt (diff)
downloadrekonq-504311e2a45c18e08865269985f00f7f3f3e6e8a.tar.xz
Implemented a new function to download data with KJob technologies..
It's not working. For now. But we are nearing the goal..
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index adfeab97..c7202fd8 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -30,13 +30,11 @@
#include "mainwindow.h"
#include "mainview.h"
#include "cookiejar.h"
-#include "downloadmanager.h"
#include "networkaccessmanager.h"
// KDE Includes
#include <KStandardDirs>
#include <KDebug>
-#include <kio/netaccess.h>
// Qt Includes
#include <QClipboard>
@@ -126,7 +124,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
{
if (reply->error() == QNetworkReply::NoError)
{
- BrowserApplication::downloadManager()->handleUnsupportedContent(reply);
+ BrowserApplication::instance()->downloadUrl( reply->url() );
return;
}
@@ -305,12 +303,9 @@ void WebView::setStatusBarText(const QString &string)
}
-// FIXME: use KIO transfer job instead!!
void WebView::downloadRequested(const QNetworkRequest &request)
{
- const KUrl url = KUrl( request.url() );
- QString path = ReKonfig::downloadDir() + QString("/") + url.fileName();
- KIO::NetAccess::download( url , path , this );
+ BrowserApplication::instance()->downloadUrl( request.url() );
}