Module implementing a QNetworkCookieJar subclass with various accept policies.
None |
CookieJar | Class implementing a QNetworkCookieJar subclass with various accept policies. |
None |
Class implementing a QNetworkCookieJar subclass with various accept policies.
AcceptAlways |
AcceptMax |
AcceptNever |
AcceptOnlyFromSitesNavigatedTo |
Allow |
AllowForSession |
Block |
KeepMax |
KeepUntilExit |
KeepUntilExpire |
None |
CookieJar | Constructor |
__cookieAdded | Private slot handling the addition of a cookie. |
__cookieFilter | Private method to filter cookies. |
__cookieRemoved | Private slot handling the removal of a cookie. |
__isOnDomainList | Private method to check, if either the rule matches the domain exactly or the domain ends with ".rule". |
__load | Private method to load the cookies settings. |
__matchDomain | Private method to check, if a URLs host matches a cookie domain according to RFC 6265. |
__rejectCookie | Private method to test, if a cookie shall be rejected. |
__save | Private method to save the cookies settings. |
acceptPolicy | Public method to get the accept policy. |
allowForSessionCookies | Public method to return the list of allowed session cookie domains. |
allowedCookies | Public method to return the list of allowed domains. |
blockedCookies | Public method to return the list of blocked domains. |
clear | Public method to clear all cookies. |
close | Public slot to close the cookie jar. |
cookieDomains | Public method to get a list of all domains used by the cookies. |
cookies | Public method to get the cookies of the cookie jar. |
filterTrackingCookies | Public method to get the filter tracking cookies flag. |
keepPolicy | Public method to get the keep policy. |
removeCookie | Public method to remove a cookie. |
removeCookies | Public method to remove a list of cookies. |
setAcceptPolicy | Public method to set the accept policy. |
setAllowForSessionCookies | Public method to set the list of allowed session cookie domains. |
setAllowedCookies | Public method to set the list of allowed domains. |
setBlockedCookies | Public method to set the list of blocked domains. |
setFilterTrackingCookies | Public method to set the filter tracking cookies flag. |
setKeepPolicy | Public method to set the keep policy. |
None |
Constructor
Private slot handling the addition of a cookie.
Private method to filter cookies.
Note: This method is used for Qt 5.11+ only.
Private slot handling the removal of a cookie.
Private method to check, if either the rule matches the domain exactly or the domain ends with ".rule".
Private method to load the cookies settings.
Private method to check, if a URLs host matches a cookie domain according to RFC 6265.
Private method to test, if a cookie shall be rejected.
Private method to save the cookies settings.
Public method to get the accept policy.
Public method to return the list of allowed session cookie domains.
Public method to return the list of allowed domains.
Public method to return the list of blocked domains.
Public method to clear all cookies.
Public slot to close the cookie jar.
Public method to get a list of all domains used by the cookies.
Public method to get the cookies of the cookie jar.
Public method to get the filter tracking cookies flag.
Public method to get the keep policy.
Public method to remove a cookie.
Public method to remove a list of cookies.
Public method to set the accept policy.
Public method to set the list of allowed session cookie domains.
Public method to set the list of allowed domains.
Public method to set the list of blocked domains.
Public method to set the filter tracking cookies flag.
Public method to set the keep policy.