6 #ifndef SWIFT_CORE_COOKIEMANAGER_H
7 #define SWIFT_CORE_COOKIEMANAGER_H
10 #include <QNetworkCookieJar>
12 #include <QReadWriteLock>
34 bool setCookiesFromUrl(
const QList<QNetworkCookie> &cookies,
const QUrl &url)
override;
38 QList<QNetworkCookie> cookiesForUrl(
const QUrl &url)
const override;
42 bool deleteCookie(
const QNetworkCookie &cookie)
override;
46 void deleteAllCookies();
50 bool insertCookie(
const QNetworkCookie &cookie)
override;
54 bool updateCookie(
const QNetworkCookie &cookie)
override;
57 mutable QReadWriteLock m_lock { QReadWriteLock::Recursive };
Threadsafe version of QNetworkCookieJar.
Backend services of the swift project, like dealing with the network or the simulators.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.