SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
httpserver
httpcookie.h
Go to the documentation of this file.
1
6
#ifndef HTTPCOOKIE_H
7
#define HTTPCOOKIE_H
8
9
#include <QList>
10
#include <QByteArray>
11
#include "
httpglobal.h
"
12
13
#include "
export.h
"
14
15
namespace
qtwebapp
{
16
23
class
HTTPSERVER_API
HttpCookie
24
{
25
public
:
26
28
HttpCookie
();
29
41
HttpCookie
(
const
QByteArray name,
const
QByteArray value,
const
int
maxAge,
const
QByteArray path=
"/"
,
const
QByteArray comment=QByteArray(),
const
QByteArray domain=QByteArray(),
const
bool
secure=
false
,
const
bool
httpOnly=
false
);
42
47
HttpCookie
(
const
QByteArray source);
48
50
QByteArray toByteArray()
const
;
51
56
static
QList<QByteArray> splitCSV(
const
QByteArray source);
57
59
void
setName(
const
QByteArray name);
60
62
void
setValue
(
const
QByteArray value);
63
65
void
setComment(
const
QByteArray comment);
66
68
void
setDomain(
const
QByteArray domain);
69
71
void
setMaxAge(
const
int
maxAge);
72
74
void
setPath(
const
QByteArray path);
75
77
void
setSecure(
const
bool
secure);
78
80
void
setHttpOnly(
const
bool
httpOnly);
81
83
QByteArray getName()
const
;
84
86
QByteArray getValue()
const
;
87
89
QByteArray getComment()
const
;
90
92
QByteArray getDomain()
const
;
93
95
int
getMaxAge()
const
;
96
98
QByteArray getPath()
const
;
99
101
bool
getSecure()
const
;
102
104
bool
getHttpOnly()
const
;
105
107
int
getVersion()
const
;
108
109
private
:
110
111
QByteArray
name
;
112
QByteArray
value
;
113
QByteArray
comment
;
114
QByteArray
domain
;
115
int
maxAge
;
116
QByteArray
path
;
117
bool
secure
;
118
bool
httpOnly
;
119
int
version
;
120
121
};
122
123
}
// end of namespace
124
125
#endif // HTTPCOOKIE_H
qtwebapp::HttpCookie::maxAge
int maxAge
Definition:
httpcookie.h:115
export.h
HTTPSERVER_API
#define HTTPSERVER_API
Definition:
export.h:88
qtwebapp::HttpCookie::path
QByteArray path
Definition:
httpcookie.h:116
qtwebapp::HttpCookie::name
QByteArray name
Definition:
httpcookie.h:111
qtwebapp::HttpCookie::value
QByteArray value
Definition:
httpcookie.h:112
qtwebapp
Definition:
httpconnectionhandler.h:23
qtwebapp::HttpCookie::version
int version
Definition:
httpcookie.h:119
httpglobal.h
qtwebapp::HttpCookie
Definition:
httpcookie.h:23
qtwebapp::HttpCookie::httpOnly
bool httpOnly
Definition:
httpcookie.h:118
SWGSDRangel::setValue
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition:
SWGHelpers.cpp:25
qtwebapp::HttpCookie::comment
QByteArray comment
Definition:
httpcookie.h:113
qtwebapp::HttpCookie::secure
bool secure
Definition:
httpcookie.h:117
qtwebapp::HttpCookie::domain
QByteArray domain
Definition:
httpcookie.h:114
Generated on Fri Aug 2 2019 17:56:29 for SDRAngel by
1.8.13