summaryrefslogtreecommitdiff
path: root/src/webpage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-19 16:06:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-19 16:06:43 +0200
commit8ea63d83c5251bcff66de198afabc227162c637f (patch)
treef88a9e2ed5713b3f111023f187be157013fa94c1 /src/webpage.h
parentBIG COMMIT (diff)
downloadrekonq-8ea63d83c5251bcff66de198afabc227162c637f.tar.xz
Fix download handling
This commit, together with adawit's patch to QtWebKit (not yet merged) && KIO will definitely solve download handling. At least, I hope so :)
Diffstat (limited to 'src/webpage.h')
-rw-r--r--src/webpage.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/webpage.h b/src/webpage.h
index 9b2243bc..eff4c3fc 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -67,7 +67,6 @@ public:
inline void setIsOnRekonqPage(bool b) { _isOnRekonqPage = b; };
public slots:
- virtual void downloadRequest(const QNetworkRequest &request);
void downloadAllContentsWithKGet(QPoint);
protected:
@@ -84,7 +83,15 @@ private slots:
void showSSLInfo(QPoint);
void updateImage(bool ok);
-private:
+ /**
+ * 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());
+
+private:
QString errorPage(QNetworkReply *reply);
QUrl _loadingUrl;