Multipart QNetworkReply parser.  
 More...
#include <qgsnetworkreplyparser.h>
| 
Public Types | 
| typedef QMap< QByteArray, QByteArray >
 | RawHeaderMap | 
| 
Public Member Functions | 
|  | QgsNetworkReplyParser (QNetworkReply *reply) | 
|  | Constructor. 
 | 
| bool | isValid () const | 
|  | Indicates if successfully parsed. 
 | 
| int | parts () const | 
|  | Get number of parts. 
 | 
| QByteArray | rawHeader (int part, const QByteArray &headerName) const | 
|  | Get part header. 
 | 
| QList< RawHeaderMap > | headers () const | 
|  | Get headers. 
 | 
| QByteArray | body (int part) const | 
|  | Get part part body. 
 | 
| QList< QByteArray > | bodies () const | 
|  | Get bodies. 
 | 
| QString | error () const | 
|  | Parsing error. 
 | 
| 
Static Public Member Functions | 
| static bool | isMultipart (QNetworkReply *reply) | 
|  | Test if reply is multipart. 
 | 
Detailed Description
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. 
Member Typedef Documentation
Constructor & Destructor Documentation
      
        
          | QgsNetworkReplyParser::QgsNetworkReplyParser | ( | QNetworkReply * | reply | ) |  | 
      
 
 
Member Function Documentation
  
  | 
        
          | QList<QByteArray> QgsNetworkReplyParser::bodies | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | QByteArray QgsNetworkReplyParser::body | ( | int | part | ) | const |  | inline | 
 
Get part part body. 
- Parameters
- 
  
  
- Returns
- part body 
 
 
  
  | 
        
          | QString QgsNetworkReplyParser::error | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | QList< RawHeaderMap > QgsNetworkReplyParser::headers | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | bool QgsNetworkReplyParser::isMultipart | ( | QNetworkReply * | reply | ) |  |  | static | 
 
Test if reply is multipart. 
- Returns
- true if reply is multipart 
 
 
  
  | 
        
          | bool QgsNetworkReplyParser::isValid | ( |  | ) | const |  | inline | 
 
Indicates if successfully parsed. 
- Returns
- true if successfully parsed 
 
 
  
  | 
        
          | int QgsNetworkReplyParser::parts | ( |  | ) | const |  | inline | 
 
Get number of parts. 
- Returns
- number of parts 
 
 
  
  | 
        
          | QByteArray QgsNetworkReplyParser::rawHeader | ( | int | part, |  
          |  |  | const QByteArray & | headerName |  
          |  | ) |  | const |  | inline | 
 
Get part header. 
- Parameters
- 
  
    | part | part index |  | headerName | header name |  
 
- Returns
- raw header 
 
 
The documentation for this class was generated from the following files: