summaryrefslogtreecommitdiff
path: root/src/webpage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-25 03:24:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-25 03:24:49 +0200
commit35fcd67df08fa0c05fe8f51c9fba3206db345507 (patch)
treea097088a81bfb308a50fb21f3f7af84f4f9d14ac /src/webpage.h
parentcleaning handleUnsupportedContent slot (diff)
downloadrekonq-35fcd67df08fa0c05fe8f51c9fba3206db345507.tar.xz
This BIG commit HAS to fix all download handling remained :)
it lets rekonq work on every site I tested (all those where there are some bugs opened) and let us factorize a big bunch of code BUG:212808
Diffstat (limited to 'src/webpage.h')
-rw-r--r--src/webpage.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/webpage.h b/src/webpage.h
index eff4c3fc..f3d201c2 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -68,7 +68,10 @@ public:
public slots:
void downloadAllContentsWithKGet(QPoint);
-
+
+ virtual void downloadRequest(const QNetworkRequest &request);
+ virtual void downloadUrl(const KUrl &url);
+
protected:
WebPage *createWindow(WebWindowType type);
@@ -83,13 +86,7 @@ private slots:
void showSSLInfo(QPoint);
void updateImage(bool ok);
- /**
- * This new slot is needed to provide integration between rekonq & KGet,
- * to better manage file names and to not overwrite KWebPage default behavior on need
- *
- * @see KWebPage::downloadRequest.
- */
- void downloadThings(const QNetworkRequest &request, const QString &suggestedFileName = QString());
+ void downloadReply(const QNetworkReply *reply, const QString &suggestedFileName = QString());
private:
QString errorPage(QNetworkReply *reply);