KCookieJar Class Reference
List of all members.Detailed Description
Definition at line 114 of file kcookiejar.h.
Public Member Functions | |
KCookieJar () | |
~KCookieJar () | |
bool | changed () const |
bool | saveCookies (const QString &_filename) |
bool | loadCookies (const QString &_filename) |
void | saveConfig (KConfig *_config) |
void | loadConfig (KConfig *_config, bool reparse=false) |
QString | findCookies (const QString &_url, bool useDOMFormat, long windowId, KHttpCookieList *pendingCookies=0) |
KHttpCookieList | makeCookies (const QString &_url, const QCString &cookie_headers, long windowId) |
KHttpCookieList | makeDOMCookies (const QString &_url, const QCString &cookie_domstr, long windowId) |
void | addCookie (KHttpCookiePtr &cookiePtr) |
KCookieAdvice | cookieAdvice (KHttpCookiePtr cookiePtr) |
KCookieAdvice | getDomainAdvice (const QString &_domain) |
void | setDomainAdvice (const QString &_domain, KCookieAdvice _advice) |
void | setDomainAdvice (KHttpCookiePtr _cookie, KCookieAdvice _advice) |
KCookieAdvice | getGlobalAdvice () |
void | setGlobalAdvice (KCookieAdvice _advice) |
const QStringList & | getDomainList () |
const KHttpCookieList * | getCookieList (const QString &_domain, const QString &_fqdn) |
void | eatCookie (KHttpCookiePtr cookiePtr) |
void | eatCookiesForDomain (const QString &domain) |
void | eatAllCookies () |
void | eatSessionCookies (long windowId) |
void | eatSessionCookies (const QString &fqdn, long windowId, bool isFQDN=true) |
void | extractDomains (const QString &_fqdn, QStringList &_domainList) |
int | preferredDefaultPolicy () const |
bool | showCookieDetails () const |
void | setPreferredDefaultPolicy (int value) |
void | setShowCookieDetails (bool value) |
Static Public Member Functions | |
static bool | parseURL (const QString &_url, QString &_fqdn, QString &_path) |
static QString | adviceToStr (KCookieAdvice _advice) |
static KCookieAdvice | strToAdvice (const QString &_str) |
Protected Member Functions | |
void | stripDomain (const QString &_fqdn, QString &_domain) |
QString | stripDomain (KHttpCookiePtr cookiePtr) |
Protected Attributes | |
QStringList | m_domainList |
KCookieAdvice | m_globalAdvice |
QDict< KHttpCookieList > | m_cookieDomains |
QDict< int > | m_twoLevelTLD |
bool | m_configChanged |
bool | m_cookiesChanged |
bool | m_showCookieDetails |
bool | m_rejectCrossDomainCookies |
bool | m_autoAcceptSessionCookies |
bool | m_ignoreCookieExpirationDate |
int | m_preferredPolicy |
Constructor & Destructor Documentation
|
Constructs a new cookie jar. One jar should be enough for all cookies. Definition at line 251 of file kcookiejar.cpp. |
|
Destructs the cookie jar. Poor little cookies, they will all be eaten by the cookie monster! Definition at line 272 of file kcookiejar.cpp. |
Member Function Documentation
|
This function hands a KHttpCookie object over to the cookie jar. On return cookiePtr is set to 0. Definition at line 920 of file kcookiejar.cpp. |
|
Returns whether the cookiejar has been changed.
Definition at line 134 of file kcookiejar.h. |
|
This function advices whether a single KHttpCookie object should be added to the cookie jar. Possible return values are:
Definition at line 982 of file kcookiejar.cpp. |
|
Remove & delete all cookies.
Definition at line 1208 of file kcookiejar.cpp. |
|
Remove & delete a cookie from the jar. cookiePtr should be one of the entries in a KHttpCookieList. Update your KHttpCookieList by calling getCookieList after calling this function. Definition at line 1161 of file kcookiejar.cpp. |
|
Remove & delete all cookies for
Definition at line 1183 of file kcookiejar.cpp. |
|
Removes all end of session cookies set by the session
Definition at line 1219 of file kcookiejar.cpp. |
|
Removes all end of session cookies set by the session
Definition at line 1198 of file kcookiejar.cpp. |
|
Returns a list of domains in The list is sorted with the FQDN listed first and the top-most domain listed last Definition at line 611 of file kcookiejar.cpp. |
|
Looks for cookies in the cookie jar which are appropriate for _url. Returned is a string containing all appropriate cookies in a format which can be added to a HTTP-header without any additional processing.
If Definition at line 327 of file kcookiejar.cpp. |
|
Get a list of all cookies in the cookie jar originating from _domain.
Definition at line 1144 of file kcookiejar.cpp. |
|
This function gets the advice for all cookies originating from _domain.
Definition at line 1050 of file kcookiejar.cpp. |
|
Get a list of all domains known to the cookie jar. A domain is known to the cookie jar if:
Definition at line 1136 of file kcookiejar.cpp. |
|
Get the global advice for cookies. The returned advice can have the following values:
The global advice is used if the domain has no advice set. Definition at line 252 of file kcookiejar.h. |
|
Load the cookie configuration.
Definition at line 1507 of file kcookiejar.cpp. |
|
Load all the cookies from file and add them to the cookie jar.
Definition at line 1367 of file kcookiejar.cpp. |
|
This function parses cookie_headers and returns a linked list of valid KHttpCookie objects for all cookies found in cookie_headers. If no cookies could be found 0 is returned.
cookie_headers should be a concatenation of all lines of a HTTP-header which start with "Set-Cookie". The lines should be separated by ' Definition at line 690 of file kcookiejar.cpp. |
|
This function parses cookie_headers and returns a linked list of valid KHttpCookie objects for all cookies found in cookie_headers. If no cookies could be found 0 is returned. cookie_domstr should be a concatenation of "name=value" pairs, separated by a semicolon ';'. Definition at line 855 of file kcookiejar.cpp. |
|
Parses _url and returns the FQDN (_fqdn) and path (_path).
Definition at line 573 of file kcookiejar.cpp. |
|
Returns the.
Definition at line 330 of file kcookiejar.h. |
|
Save the cookie configuration.
Definition at line 1471 of file kcookiejar.cpp. |
|
Store all the cookies in a safe(?) place.
Definition at line 1260 of file kcookiejar.cpp. |
|
This function sets the advice for all cookies originating from the same domain as _cookie. _advice can have the following values:
Definition at line 1115 of file kcookiejar.cpp. |
|
This function sets the advice for all cookies originating from _domain. _advice can have the following values:
Definition at line 1071 of file kcookiejar.cpp. |
|
This function sets the global advice for cookies. _advice can have the following values:
The global advice is used if the domain has no advice set. Definition at line 1126 of file kcookiejar.cpp. |
|
Sets the user's default preference cookie policy.
Definition at line 338 of file kcookiejar.h. |
|
Sets the user's preference of level of detail displayed by the cookie dialog.
Definition at line 344 of file kcookiejar.h. |
|
Returns the.
Definition at line 333 of file kcookiejar.h. |
The documentation for this class was generated from the following files: