TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tcookiejar.h
Go to the documentation of this file.
1#pragma once
2#include <QList>
3#include <QString>
4#include <TCookie>
5#include <TGlobal>
6
7#ifdef Q_CC_MSVC
8extern uint qHash(const TCookie &key);
9#endif
10
11
12class T_CORE_EXPORT TCookieJar : protected QList<TCookie> {
13public:
15 TCookieJar(const TCookieJar &jar);
16 TCookieJar &operator=(const TCookieJar &jar);
17
18 void addCookie(const TCookie &cookie);
19 QList<TCookie> allCookies() const;
20 void clear() { QList<TCookie>::clear(); }
21};
22
23
25{
26 QList<TCookie>::operator=(*static_cast<const QList<TCookie> *>(&jar));
27 return *this;
28}
29
30inline QList<TCookie> TCookieJar::allCookies() const
31{
32 return *static_cast<const QList<TCookie> *>(this);
33}
34
The TCookieJar class holds network cookies.
Definition tcookiejar.h:12
void clear()
Definition tcookiejar.h:20
TCookieJar()
Constructor.
Definition tcookiejar.h:14
QList< TCookie > allCookies() const
Returns a list of all cookies in the cookie jar.
Definition tcookiejar.h:30
TCookieJar & operator=(const TCookieJar &jar)
Assigns other to this cookie jar and returns a reference to this cookie jar.
Definition tcookiejar.h:24
The TCookie class holds one network cookie.
Definition tcookie.h:7
#define T_CORE_EXPORT
Definition tdeclexport.h:28