QGIS API Documentation
3.0.2-Girona (307d082)
|
Multipart QNetworkReply parser. More...
#include <qgsnetworkreplyparser.h>
Public Types | |
typedef QMap< QByteArray, QByteArray > | RawHeaderMap |
Public Member Functions | |
QgsNetworkReplyParser (QNetworkReply *reply) | |
Constructor. More... | |
QList< QByteArray > | bodies () const |
Get bodies. More... | |
QByteArray | body (int part) const |
Get part part body. More... | |
QString | error () const |
Parsing error. More... | |
QList< RawHeaderMap > | headers () const |
Get headers. More... | |
bool | isValid () const |
Indicates if successfully parsed. More... | |
int | parts () const |
Get number of parts. More... | |
QByteArray | rawHeader (int part, const QByteArray &headerName) const |
Get part header. More... | |
Static Public Member Functions | |
static bool | isMultipart (QNetworkReply *reply) |
Test if reply is multipart. More... | |
Multipart QNetworkReply parser.
It seams that Qt does not have currently support for multipart reply and it is not even possible to create QNetworkReply from raw data so we need a class for multipart QNetworkReply parsing.
Definition at line 39 of file qgsnetworkreplyparser.h.
typedef QMap<QByteArray, QByteArray> QgsNetworkReplyParser::RawHeaderMap |
Definition at line 44 of file qgsnetworkreplyparser.h.
QgsNetworkReplyParser::QgsNetworkReplyParser | ( | QNetworkReply * | reply | ) |
|
inline |
Get bodies.
Definition at line 78 of file qgsnetworkreplyparser.h.
|
inline |
Get part part body.
part | part index |
Definition at line 75 of file qgsnetworkreplyparser.h.
|
inline |
Parsing error.
Definition at line 81 of file qgsnetworkreplyparser.h.
|
inline |
Get headers.
Definition at line 69 of file qgsnetworkreplyparser.h.
|
static |
Test if reply is multipart.
Definition at line 137 of file qgsnetworkreplyparser.cpp.
|
inline |
Indicates if successfully parsed.
Definition at line 54 of file qgsnetworkreplyparser.h.
|
inline |
|
inline |
Get part header.
part | part index |
headerName | header name |
Definition at line 66 of file qgsnetworkreplyparser.h.