35 const QString&
path =
"/",
36 const QString&
comment = QString(),
37 const QString&
domain = QString(),
38 const bool secure =
false);
45 void setName (
const QString& x) { m_name = x; }
46 void setValue (
const QString& x) { m_value = x; }
50 void setPath (
const QString& x) { m_path = x; }
54 QString
name()
const {
return m_name; }
55 QString
value()
const {
return m_value; }
56 QString
comment()
const {
return m_comment; }
57 QString
domain()
const {
return m_domain; }
58 int maxAge()
const {
return m_maxAge; }
59 QString
path()
const {
return m_path; }
60 bool secure()
const {
return m_secure; }
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS void setComment(const QString &x)
Sets the comment of cookie.
void setDomain(const QString &x)
Sets the domain of cookie.
QString path() const
Returns the path of cookie.
bool secure() const
Returns the secure status of cookie.
void setName(const QString &x)
Sets the name of cookie.
void setMaxAge(const int &x)
Sets the max age of cookie.
QString name() const
Returns the name of cookie.
One cookie of HTTP protocol.
QByteArray toByteArray() const
Returns cookie on form of line formated for HTTP header.
int maxAge() const
Returns the max age of cookie.
QString comment() const
Returns the comment of cookie.
QString value() const
Returns the value of cookie.
int version() const
Returns the version of cookie.
void setPath(const QString &x)
Sets the path of cookie.
void setVersion(const int &x)
Sets the version ot cookie.
void setSecure(const bool &x)
Sets the cookie as secure.
void setValue(const QString &x)
Sets the value of cookie.
HttpCookie()
Constructor, creates an empty cookie.
Namespace of HTTP server.
QString domain() const
Returns the domain of cookie.