![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
A customized cookie jar with additional features. More...
#include "customcookiejar.h"
Inheritance diagram for LeechCraft::Util::CustomCookieJar:
Collaboration diagram for LeechCraft::Util::CustomCookieJar:Public Member Functions | |
| CustomCookieJar (QObject *parent=0) | |
| Constructs the cookie jar. More... | |
| virtual | ~CustomCookieJar () |
| void | SetFilterTrackingCookies (bool filter) |
| QByteArray | Save () const |
| void | Load (const QByteArray &data) |
| void | CollectGarbage () |
| QList< QNetworkCookie > | cookiesForUrl (const QUrl &url) const |
A customized cookie jar with additional features.
Allows one to filter tracking cookies, filter duplicate cookies and has unlimited storage period.
Definition at line 45 of file customcookiejar.h.
| CustomCookieJar::CustomCookieJar | ( | QObject * | parent = 0 | ) |
Constructs the cookie jar.
Filtering of tracking cookies is false by default, and cookies aren't restored.
| [in] | parent | The parent object. |
Definition at line 36 of file customcookiejar.cpp.
|
virtual |
Destructs the cookie jar.
Definition at line 42 of file customcookiejar.cpp.
| void CustomCookieJar::CollectGarbage | ( | ) |
Removes duplicate cookies.
Definition at line 78 of file customcookiejar.cpp.
| QList< QNetworkCookie > CustomCookieJar::cookiesForUrl | ( | const QUrl & | url | ) | const |
Returns cookies for the given url, filtering out duplicates.
| [in] | url | The url to return cookies for. |
Definition at line 89 of file customcookiejar.cpp.
| void CustomCookieJar::Load | ( | const QByteArray & | data | ) |
Restores the cookies from the array previously obtained from Save().
| [in] | data | Serialized cookies. |
Definition at line 64 of file customcookiejar.cpp.
| QByteArray CustomCookieJar::Save | ( | ) | const |
Serializes the cookie jar contents into a QByteArray suitable for storage.
Definition at line 51 of file customcookiejar.cpp.
| void CustomCookieJar::SetFilterTrackingCookies | ( | bool | filter | ) |
Enables or disables filtering tracking cookies.
| [in] | filter | Whether to filter tracking cookies. |
Definition at line 46 of file customcookiejar.cpp.