3 #include <QNetworkCookie>
7 class TCookie :
public QNetworkCookie {
9 TCookie(
const QByteArray &name = QByteArray(),
const QByteArray &value = QByteArray());
11 TCookie(
const QNetworkCookie &other);
15 int64_t
maxAge()
const {
return _maxAge; }
17 QByteArray
sameSite()
const {
return _sameSite; }
21 QByteArray
toRawForm(QNetworkCookie::RawForm form = QNetworkCookie::Full)
const;
25 static QList<TCookie>
parseCookies(
const QByteArray &cookieString);
28 int64_t _maxAge {INT64_MIN};
The TCookie class holds one network cookie.
Definition: tcookie.h:7
bool operator==(const TCookie &other) const
Definition: tcookie.cpp:83
void setMaxAge(int64_t maxAge)
Definition: tcookie.h:16
QByteArray sameSite() const
Definition: tcookie.h:17
TCookie & operator=(const TCookie &other)
Definition: tcookie.cpp:33
int64_t maxAge() const
Definition: tcookie.h:15
QByteArray toRawForm(QNetworkCookie::RawForm form=QNetworkCookie::Full) const
Definition: tcookie.cpp:60
TCookie(const QByteArray &name=QByteArray(), const QByteArray &value=QByteArray())
Definition: tcookie.cpp:13
static QList< TCookie > parseCookies(const QByteArray &cookieString)
Definition: tcookie.cpp:89
~TCookie()
Definition: tcookie.h:12
bool operator!=(const TCookie &other) const
Definition: tcookie.cpp:77
void swap(TCookie &other)
Definition: tcookie.cpp:52
bool setSameSite(const QByteArray &sameSite)
Definition: tcookie.cpp:42