Http::BodyReader Class Reference

#include <BodyReader.h> [code]

Inherits QObject.

Inheritance diagram for Http::BodyReader:

Inheritance graph
[legend]
Collaboration diagram for Http::BodyReader:

Collaboration graph
[legend]
List of all members.

Detailed Description

Reads HTTP formatted file data from a Connection.

Supports raw transfers, as well as chuncked transfers.

Todo:
What about MIME?

Read the body bytes and write them in q QIODevice, or better create a Body class and write data into it. That would be better to support multipart bodies. For example when reading multipart/ranges from a file for download. Alternatively, we might use a different reader for handling multipart messages.

Definition at line 42 of file BodyReader.h.

Signals

void bodyRead ()
void readError ()
void writeError ()

Public Member Functions

 BodyReader (Connection *connection)
 ~BodyReader ()
void startReading (QIODevice *file, qint64 bodySize)

Private Types

enum  Constants { BufferSize = 1024 }

Private Slots

void readyRead ()

Private Member Functions

 BodyReader (const BodyReader &)
BodyReaderoperator= (const BodyReader &)

Private Attributes

Http::BodyReader::Private p

Classes

class  Private


Member Enumeration Documentation

enum Http::BodyReader::Constants [private]
 

Enumerator:
BufferSize 

Definition at line 64 of file BodyReader.h.


Constructor & Destructor Documentation

Http::BodyReader::BodyReader const BodyReader  )  [private]
 

BodyReader::BodyReader Connection connection  ) 
 

Definition at line 29 of file BodyReader.cpp.

BodyReader::~BodyReader  ) 
 

Definition at line 37 of file BodyReader.cpp.


Member Function Documentation

void Http::BodyReader::bodyRead  )  [signal]
 

BodyReader& Http::BodyReader::operator= const BodyReader  )  [private]
 

void Http::BodyReader::readError  )  [signal]
 

void BodyReader::readyRead  )  [private, slot]
 

Definition at line 50 of file BodyReader.cpp.

void BodyReader::startReading QIODevice file,
qint64  bodySize
 

Definition at line 41 of file BodyReader.cpp.

void Http::BodyReader::writeError  )  [signal]
 


Member Data Documentation

class Http::BodyReader::Private Http::BodyReader::p [private]
 


The documentation for this class was generated from the following files: