diff options
Diffstat (limited to 'src/webpage.h')
-rw-r--r-- | src/webpage.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/webpage.h b/src/webpage.h index 45fc0c51..eb558220 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -32,40 +32,39 @@ #define WEBPAGE_H +// KDE Includes +#include <KWebPage> + // Qt Includes -#include <QWebPage> #include <QUrl> // Forward Declarations class QWebFrame; class QNetworkReply; -class QUrl; -class WebPage : public QWebPage +class WebPage : public KWebPage { Q_OBJECT public: - explicit WebPage(QObject *parent = 0); + explicit WebPage(QObject *parent = 0, qlonglong windowId = 0); ~WebPage(); - + + virtual bool authorizedRequest(const QUrl &url) const; + public slots: - void manageNetworkErrors(QNetworkReply* reply); + void manageNetworkErrors(QNetworkReply *reply); protected: WebPage *createWindow(WebWindowType type); - virtual WebPage *newWindow(WebWindowType type); virtual bool acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type); - - virtual QString userAgentForUrl(const QUrl& url) const; protected Q_SLOTS: virtual void handleUnsupportedContent(QNetworkReply *reply); - virtual void downloadRequested(const QNetworkRequest &request); private: friend class WebView; |