From ed429ebfc9920c3a0fc97170ff8df6d5520eefb9 Mon Sep 17 00:00:00 2001 From: "Jonas M. Gastal" Date: Wed, 11 Jan 2012 17:00:11 -0200 Subject: 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 Reviewed-by: Alexis Menard Reviewed-by: Lars Knoll Reviewed-by: Shane Kearns --- src/network/access/qnetworkcookie.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network/access/qnetworkcookie.h') 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 parseCookies(const QByteArray &cookieString); private: -- cgit v1.2.3