Commit b2c8d268 authored by lars's avatar lars
Browse files

Reviewed by Simon

        Remove the userHandle methods from QWebnetworkJob again.
        They don't really give us anything and just clutter the API.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9391c471
......@@ -166,23 +166,6 @@ bool QWebNetworkJob::deref()
return true;
}
/*!
\internal
*/
void QWebNetworkJob::setUserHandle(void *handle)
{
d->userHandle = handle;
}
/*!
\internal
*/
void *QWebNetworkJob::userHandle() const
{
return d->userHandle;
}
/*!
\class QWebNetworkManager
\internal
......
......@@ -46,34 +46,14 @@ public:
void ref();
bool deref();
template <typename T>
void setHandle(T *t);
template <typename T>
T *handle() const;
private:
QWebNetworkJob();
~QWebNetworkJob();
void setUserHandle(void *);
void *userHandle() const;
friend class QWebNetworkManager;
QWebNetworkJobPrivate *d;
};
template <typename T>
void QWebNetworkJob::setHandle(T *t)
{
setUserHandle(t);
}
template <typename T>
T *QWebNetworkJob::handle() const
{
return static_cast<T *>(userHandle());
}
class QWebNetworkInterfacePrivate;
class QWEBKIT_EXPORT QWebNetworkInterface : public QObject
......
......@@ -41,7 +41,6 @@ public:
QHttpResponseHeader response;
WebCore::ResourceHandle *resourceHandle;
void *userHandle;
bool redirected;
void setURL(const QUrl &u);
......
2007-05-21 Lars Knoll <lars@trolltech.com>
Reviewed by Simon
Remove the userHandle methods from QWebnetworkJob again.
They don't really give us anything and just clutter the API.
* Api/qwebnetworkinterface.cpp:
* Api/qwebnetworkinterface.h:
* Api/qwebnetworkinterface_p.h:
2007-05-21 Simon Hausmann <hausmann@kde.org>
Reviewed by Zack.
......
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