QNetworkCookie Class Reference

#include <qnetworkcookie.h>

Class Description

Definition at line 62 of file qnetworkcookie.h.

Public Types

enum  RawForm { NameAndValueOnly, Full }
 

Public Member Functions

 QNetworkCookie (const QByteArray &name=QByteArray(), const QByteArray &value=QByteArray())
 
 QNetworkCookie (const QNetworkCookie &other)
 
 ~QNetworkCookie ()
 
QNetworkCookieoperator= (const QNetworkCookie &other)
 
bool operator== (const QNetworkCookie &other) const
 
bool operator!= (const QNetworkCookie &other) const
 
bool isSecure () const
 
void setSecure (bool enable)
 
bool isHttpOnly () const
 
void setHttpOnly (bool enable)
 
bool isSessionCookie () const
 
QDateTime expirationDate () const
 
void setExpirationDate (const QDateTime &date)
 
QString domain () const
 
void setDomain (const QString &domain)
 
QString path () const
 
void setPath (const QString &path)
 
QByteArray name () const
 
void setName (const QByteArray &cookieName)
 
QByteArray value () const
 
void setValue (const QByteArray &value)
 
QByteArray toRawForm (RawForm form=Full) const
 

Static Public Member Functions

static QList< QNetworkCookieparseCookies (const QByteArray &cookieString)
 

Friends

class QNetworkCookiePrivate
 

Member Enumeration Documentation

enum RawForm
Enumerator
NameAndValueOnly 
Full 

Definition at line 65 of file qnetworkcookie.h.

Constructor & Destructor Documentation

QNetworkCookie ( const QByteArray name = QByteArray(),
const QByteArray value = QByteArray() 
)
QNetworkCookie ( const QNetworkCookie other)

Member Function Documentation

QNetworkCookie& operator= ( const QNetworkCookie other)
bool operator== ( const QNetworkCookie other) const
bool operator!= ( const QNetworkCookie other) const
inline

Definition at line 75 of file qnetworkcookie.h.

76  { return !(*this == other); }
bool isSecure ( ) const
void setSecure ( bool  enable)
bool isHttpOnly ( ) const
void setHttpOnly ( bool  enable)
bool isSessionCookie ( ) const
QDateTime expirationDate ( ) const
void setExpirationDate ( const QDateTime date)
QString domain ( ) const
void setDomain ( const QString domain)
QString path ( ) const
void setPath ( const QString path)
QByteArray name ( ) const
void setName ( const QByteArray cookieName)
QByteArray value ( ) const
void setValue ( const QByteArray value)
QByteArray toRawForm ( RawForm  form = Full) const
static QList<QNetworkCookie> parseCookies ( const QByteArray cookieString)
static

Friends And Related Function Documentation

friend class QNetworkCookiePrivate
friend

Definition at line 105 of file qnetworkcookie.h.


The documentation for this class was generated from the following file: