summaryrefslogtreecommitdiff
path: root/src/webpage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.h')
-rw-r--r--src/webpage.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/webpage.h b/src/webpage.h
index c43212b6..1e25958c 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -37,7 +37,7 @@ class QWebFrame;
class QNetworkReply;
-class WebPage : public KWebPage
+class WebPage : public QWebPage
{
Q_OBJECT
@@ -48,11 +48,21 @@ public slots:
void manageNetworkErrors(QNetworkReply* reply);
protected:
- KWebPage *createWindow(QWebPage::WebWindowType type);
-
+ QWebPage *createWindow(QWebPage::WebWindowType type);
+ virtual WebPage *newWindow(WebWindowType type);
+
+// QString chooseFile(QWebFrame *frame, const QString &suggestedFile);
+
+ void javaScriptAlert(QWebFrame *frame, const QString &msg);
+ bool javaScriptConfirm(QWebFrame *frame, const QString &msg);
+ bool javaScriptPrompt(QWebFrame *frame, const QString &msg, const QString &defaultValue, QString *result);
+
+ QObject *createPlugin(const QString &classId, const QUrl &url, const QStringList &paramNames, const QStringList &paramValues);
+
protected Q_SLOTS:
virtual void slotHandleUnsupportedContent(QNetworkReply *reply);
-
+ virtual void slotDownloadRequested(const QNetworkRequest &request);
+
private:
void viewErrorPage(QNetworkReply *);