QtNetwork/qnetworkcookie.h Source File
Go to the documentation of this file.
42 #ifndef QNETWORKCOOKIE_H
43 #define QNETWORKCOOKIE_H
45 #include <QtCore/QSharedDataPointer>
46 #include <QtCore/QList>
47 #include <QtCore/QMetaType>
48 #include <QtCore/QObject>
61 class QNetworkCookiePrivate;
70 QNetworkCookie(
const QByteArray &
name = QByteArray(),
const QByteArray &
value = QByteArray());
71 QNetworkCookie(
const QNetworkCookie &other);
73 QNetworkCookie &operator=(
const QNetworkCookie &other);
74 bool operator==(
const QNetworkCookie &other)
const;
75 inline bool operator!=(
const QNetworkCookie &other)
const
76 {
return !(*
this == other); }
78 bool isSecure()
const;
79 void setSecure(
bool enable);
80 bool isHttpOnly()
const;
81 void setHttpOnly(
bool enable);
83 bool isSessionCookie()
const;
84 QDateTime expirationDate()
const;
85 void setExpirationDate(
const QDateTime &date);
87 QString domain()
const;
88 void setDomain(
const QString &domain);
91 void setPath(
const QString &path);
93 QByteArray
name()
const;
94 void setName(
const QByteArray &cookieName);
96 QByteArray
value()
const;
97 void setValue(
const QByteArray &
value);
99 QByteArray toRawForm(RawForm form = Full)
const;
105 friend class QNetworkCookiePrivate;
109 #ifndef QT_NO_DEBUG_STREAM
117 #include <QtNetwork/QNetworkCookieJar>
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
Q_NETWORK_EXPORT QDebug operator<<(QDebug, const QNetworkCookie &)
bool operator!=(const QNetworkCookie &other) const
GLsizei const GLfloat * value
GLuint const GLchar * name
Q_DECLARE_TYPEINFO(QNetworkCookie, Q_MOVABLE_TYPE)