summaryrefslogtreecommitdiff
path: root/src/webpage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.h')
-rw-r--r--src/webpage.h38
1 files changed, 23 insertions, 15 deletions
diff --git a/src/webpage.h b/src/webpage.h
index 9169ad60..41c14295 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -6,7 +6,8 @@
* Copyright (C) 2008 Dirk Mueller <mueller@kde.org>
* Copyright (C) 2008 Urs Wolfer <uwolfer @ kde.org>
* Copyright (C) 2008 Michael Howell <mhowell123@gmail.com>
-* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com>
+* Copyright (C) 2008-2010 by Andrea Diamantini <adjam7 at gmail dot com>
+* Copyright (C) 2010 by Matthieu Gicquel <matgic78 at gmail dot com>
*
*
* This program is free software; you can redistribute it and/or
@@ -14,9 +15,9 @@
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
-* by the membership of KDE e.V.), which shall act as a proxy
+* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -32,8 +33,13 @@
#define WEBPAGE_H
+// Rekonq Includes
+#include "rekonq_defines.h"
+
// Local Includes
#include "protocolhandler.h"
+#include "newtabpage.h"
+#include "websslinfo.h"
// KDE Includes
#include <KWebPage>
@@ -46,36 +52,38 @@ class QWebFrame;
class QNetworkReply;
-class WebPage : public KWebPage
+class REKONQ_TESTS_EXPORT WebPage : public KWebPage
{
Q_OBJECT
public:
- explicit WebPage(QObject *parent = 0);
+ explicit WebPage(QWidget *parent = 0);
~WebPage();
public slots:
- void manageNetworkErrors(QNetworkReply *reply);
virtual void downloadRequest(const QNetworkRequest &request);
- void downloadAllContentsWithKGet();
+ void downloadAllContentsWithKGet(QPoint);
+
protected:
WebPage *createWindow(WebWindowType type);
-
- virtual bool acceptNavigationRequest(QWebFrame *frame,
- const QNetworkRequest &request,
+
+ virtual bool acceptNavigationRequest(QWebFrame *frame,
+ const QNetworkRequest &request,
NavigationType type);
-
-protected Q_SLOTS:
- virtual void handleUnsupportedContent(QNetworkReply *reply);
private slots:
+ void handleUnsupportedContent(QNetworkReply *reply);
+ void manageNetworkErrors(QNetworkReply *reply);
void loadFinished(bool);
+ void showSSLInfo(QPoint);
+ void updateImage(bool ok);
private:
QString errorPage(QNetworkReply *);
+ QUrl _loadingUrl;
- QUrl m_requestedUrl;
- ProtocolHandler m_protHandler;
+ ProtocolHandler _protHandler;
+ WebSslInfo _sslInfo;
};
#endif