PythonQtWrapper_QNetworkCookie.h
45 lines
| 2.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QNETWORKCOOKIE_H | ||
#define PYTHONQTWRAPPER_QNETWORKCOOKIE_H | ||||
#include <qnetworkcookie.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QDateTime> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qdatetime.h> | ||||
#include <qlist.h> | ||||
#include <qnetworkcookie.h> | ||||
class PythonQtWrapper_QNetworkCookie : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(RawForm ) | ||||
enum RawForm{ | ||||
NameAndValueOnly = QNetworkCookie::NameAndValueOnly, Full = QNetworkCookie::Full}; | ||||
public slots: | ||||
QNetworkCookie* new_QNetworkCookie(const QByteArray& name = QByteArray(), const QByteArray& value = QByteArray()); | ||||
QNetworkCookie* new_QNetworkCookie(const QNetworkCookie& other); | ||||
void delete_QNetworkCookie(QNetworkCookie* obj) { delete obj; } | ||||
florianlink
|
r73 | void setExpirationDate(QNetworkCookie* theWrappedObject, const QDateTime& date); | ||
florianlink
|
r13 | void setSecure(QNetworkCookie* theWrappedObject, bool enable); | ||
florianlink
|
r73 | QList<QNetworkCookie > static_QNetworkCookie_parseCookies(const QByteArray& cookieString); | ||
QByteArray value(QNetworkCookie* theWrappedObject) const; | ||||
florianlink
|
r24 | void setName(QNetworkCookie* theWrappedObject, const QByteArray& cookieName); | ||
florianlink
|
r73 | QString path(QNetworkCookie* theWrappedObject) const; | ||
bool operator_equal(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; | ||||
void setValue(QNetworkCookie* theWrappedObject, const QByteArray& value); | ||||
florianlink
|
r13 | QByteArray toRawForm(QNetworkCookie* theWrappedObject, QNetworkCookie::RawForm form = QNetworkCookie::Full) const; | ||
florianlink
|
r73 | void setDomain(QNetworkCookie* theWrappedObject, const QString& domain); | ||
QString domain(QNetworkCookie* theWrappedObject) const; | ||||
QDateTime expirationDate(QNetworkCookie* theWrappedObject) const; | ||||
florianlink
|
r24 | bool isSecure(QNetworkCookie* theWrappedObject) const; | ||
bool isSessionCookie(QNetworkCookie* theWrappedObject) const; | ||||
void setPath(QNetworkCookie* theWrappedObject, const QString& path); | ||||
florianlink
|
r73 | QByteArray name(QNetworkCookie* theWrappedObject) const; | ||
QString toString(QNetworkCookie*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QNETWORKCOOKIE_H | ||||