swift
Public Member Functions | List of all members
swift::core::CCookieManager Class Reference

Threadsafe version of QNetworkCookieJar. More...

Inheritance diagram for swift::core::CCookieManager:
[legend]

Public Member Functions

 CCookieManager (QObject *parent=nullptr)
 Constructor.
 
bool setCookiesFromUrl (const QList< QNetworkCookie > &cookies, const QUrl &url)
 
QList< QNetworkCookie > cookiesForUrl (const QUrl &url) const
 
bool deleteCookie (const QNetworkCookie &cookie)
 
void deleteAllCookies ()
 Delete all cookies. More...
 
bool insertCookie (const QNetworkCookie &cookie)
 
bool updateCookie (const QNetworkCookie &cookie)
 

Detailed Description

Threadsafe version of QNetworkCookieJar.

Definition at line 24 of file cookiemanager.h.

Member Function Documentation

◆ cookiesForUrl()

QList< QNetworkCookie > swift::core::CCookieManager::cookiesForUrl ( const QUrl &  url) const

Remarks
This function is thread safe.

Definition at line 22 of file cookiemanager.cpp.

◆ deleteAllCookies()

void swift::core::CCookieManager::deleteAllCookies ( )

Delete all cookies.

Remarks
This function is thread safe.

Definition at line 47 of file cookiemanager.cpp.

◆ deleteCookie()

bool swift::core::CCookieManager::deleteCookie ( const QNetworkCookie &  cookie)

Remarks
This function is thread safe.

Definition at line 29 of file cookiemanager.cpp.

◆ insertCookie()

bool swift::core::CCookieManager::insertCookie ( const QNetworkCookie &  cookie)

Remarks
This function is thread safe.

Definition at line 35 of file cookiemanager.cpp.

◆ setCookiesFromUrl()

bool swift::core::CCookieManager::setCookiesFromUrl ( const QList< QNetworkCookie > &  cookies,
const QUrl &  url 
)

Remarks
This function is thread safe.

Definition at line 16 of file cookiemanager.cpp.

◆ updateCookie()

bool swift::core::CCookieManager::updateCookie ( const QNetworkCookie &  cookie)

Remarks
This function is thread safe.

Definition at line 41 of file cookiemanager.cpp.


The documentation for this class was generated from the following files: