Commit ccd61240 authored by hausmann's avatar hausmann
Browse files

Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader...

Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
overload to take a QWebNetworkRequest instead.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1182ba0c
......@@ -131,12 +131,19 @@ QWebFrame *QWebPage::createFrame(QWebFrame *parentFrame, QWebFrameData *frameDat
void QWebPage::open(const QUrl &url)
{
open(url, QHttpRequestHeader(), QByteArray());
QWebNetworkRequest request;
request.setUrl(url);
open(request);
}
void QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
void QWebPage::open(const QWebNetworkRequest &req)
{
d->insideOpenCall = true;
QUrl url = req.url();
QHttpRequestHeader httpHeader = req.httpHeader();
QByteArray postData = req.postData();
WebCore::ResourceRequest request(KURL(url.toString()));
QString method = httpHeader.method();
......
......@@ -32,7 +32,6 @@
class QWebFrame;
class QUndoStack;
class QUrl;
class QHttpRequestHeader;
class QWebNetworkRequest;
class QWebPagePrivate;
......@@ -63,7 +62,7 @@ public:
void open(const QUrl &url);
void open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData);
void open(const QWebNetworkRequest &request);
QWebFrame *mainFrame() const;
......
2007-06-13 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
overload to take a QWebNetworkRequest instead.
* Api/qwebpage.cpp:
(QWebPage::open):
* Api/qwebpage.h:
2007-06-13 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment