diff options
author | Jonas M. Gastal <jgastal@profusion.mobi> | 2012-01-11 17:00:11 -0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-27 13:29:14 +0100 |
commit | ed429ebfc9920c3a0fc97170ff8df6d5520eefb9 (patch) | |
tree | de94dc0f0c79d9cc2423cf1955006d0432140645 /src/network/access/qnetworkcookie.h | |
parent | 1166ad8603fe4fbd1b008aaa7c043ee1078780a5 (diff) |
Gives QNetworkCookieJar a virtual API.
QNetworkCookieJar now has the following virtual methods:
virtual bool validateCookie(QNetworkCookie &cookie);
virtual bool insertCookie(const QNetworkCookie &cookie, const QUrl &url);
virtual bool updateCookie(const QNetworkCookie &cookie);
virtual void deleteCookie(const QNetworkCookie &cookie);
Their implementation is such that the behavior the class previously
had(in memory storage of the cookies) is mantained.
Task-number: QTBUG-23145
Change-Id: I1420894d31e8072eca6903c3c7ffd6f06205a257
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Alexis Menard <alexis.menard@openbossa.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
Diffstat (limited to 'src/network/access/qnetworkcookie.h')
-rw-r--r-- | src/network/access/qnetworkcookie.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qnetworkcookie.h b/src/network/access/qnetworkcookie.h index ff68797702..b6dc4e62d0 100644 --- a/src/network/access/qnetworkcookie.h +++ b/src/network/access/qnetworkcookie.h @@ -97,6 +97,9 @@ public: QByteArray toRawForm(RawForm form = Full) const; + bool hasSameIdentifier(const QNetworkCookie &other) const; + void normalize(const QUrl &url); + static QList<QNetworkCookie> parseCookies(const QByteArray &cookieString); private: |