11#include <QNetworkCookie>
12#include <QNetworkCookieJar>
14#include <QRegularExpression>
30 bool FilterTrackingCookies_ =
false;
32 bool MatchDomainExactly_ =
false;
105 [[nodiscard]] QByteArray
Save ()
const;
115 void Load (
const QByteArray& data);
142 using QNetworkCookieJar::allCookies;
143 using QNetworkCookieJar::setAllCookies;
void SetFilterTrackingCookies(bool filter)
void SetEnabled(bool enabled)
Enables or disables the cookies.
void SetExactDomainMatch(bool enabled)
Sets whether exact domain matching is enabled.
void SetWhitelist(const QList< QRegularExpression > &list)
Sets the cookies whitelist.
void cookiesRemoved(const QList< QNetworkCookie > &)
void SetBlacklist(const QList< QRegularExpression > &list)
Sets the cookies blacklist.
bool setCookiesFromUrl(const QList< QNetworkCookie > &cookieList, const QUrl &url) override
Adds the cookieList for the given url to the jar.
void Load(const QByteArray &data)
QList< QNetworkCookie > cookiesForUrl(const QUrl &url) const override
Returns cookies for the given url.
void cookiesAdded(const QList< QNetworkCookie > &)
CustomCookieJar(QObject *parent=nullptr)
Constructs the cookie jar.