Commit 11c73dbb authored by hausmann's avatar hausmann
Browse files

Moved QWebNetworkJob::Method enum into QWebNetworkRequest.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fde85e8d
......@@ -41,6 +41,12 @@ struct QWebNetworkRequestPrivate;
class QWEBKIT_EXPORT QWebNetworkRequest
{
public:
enum Method {
Get,
Post
//Head
};
QWebNetworkRequest();
QWebNetworkRequest(const QWebNetworkRequest &other);
QWebNetworkRequest &operator=(const QWebNetworkRequest &other);
......@@ -64,11 +70,6 @@ private:
class QWEBKIT_EXPORT QWebNetworkJob
{
public:
enum Method {
Get,
Post
//Head
};
QUrl url() const;
QByteArray postData() const;
QHttpRequestHeader httpHeader() const;
......
......@@ -46,7 +46,7 @@ QWidget *QWebObjectPluginConnector::pluginParentWidget() const
return d->frame->viewport();
}
QWebNetworkJob *QWebObjectPluginConnector::requestUrl(QWebNetworkJob::Method method, const QUrl &url, Target target)
QWebNetworkJob *QWebObjectPluginConnector::requestUrl(QWebNetworkRequest::Method method, const QUrl &url, Target target)
{
if (target != Plugin)
return 0;
......@@ -56,7 +56,7 @@ QWebNetworkJob *QWebObjectPluginConnector::requestUrl(QWebNetworkJob::Method met
p->interface = d->frame->page()->networkInterface();
p->connector = this;
QString m = (method == QWebNetworkJob::Get ? "GET" : "POST");
QString m = (method == QWebNetworkRequest::Get ? "GET" : "POST");
p->request.init(m, url);
d->frame->page()->networkInterface()->addJob(job);
......
......@@ -48,7 +48,7 @@ public:
Parent,
Top
};
QWebNetworkJob *requestUrl(QWebNetworkJob::Method, const QUrl &url, Target target = Plugin);
QWebNetworkJob *requestUrl(QWebNetworkRequest::Method, const QUrl &url, Target target = Plugin);
signals:
void started(QWebNetworkJob*);
......
2007-06-13 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
* Api/qwebnetworkinterface.h:
* Api/qwebobjectpluginconnector.cpp:
(QWebObjectPluginConnector::requestUrl):
* Api/qwebobjectpluginconnector.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