TreeFrogFramework  1.18
Public Member Functions | Static Protected Member Functions | List of all members
TMimeHeader Class Reference

#include <tmultipartformdata.h>

Public Member Functions

 TMimeHeader ()
 
 TMimeHeader (const TMimeHeader &other)
 
TMimeHeaderoperator= (const TMimeHeader &other)
 
bool isEmpty () const
 
QByteArray header (const QByteArray &headerName) const
 
void setHeader (const QByteArray &headerName, const QByteArray &value)
 
QByteArray contentDispositionParameter (const QByteArray &name) const
 
QByteArray dataName () const
 
QString originalFileName () const
 

Static Protected Member Functions

static QMap< QByteArray, QByteArray > parseHeaderParameter (const QByteArray &header)
 

Detailed Description

The TMimeHeader class contains MIME header information for internet.

Constructor & Destructor Documentation

TMimeHeader::TMimeHeader ( )
inline
TMimeHeader::TMimeHeader ( const TMimeHeader other)

Copy constructor.

Member Function Documentation

QByteArray TMimeHeader::contentDispositionParameter ( const QByteArray &  name) const

Returns the value of the parameter name in the header field content-disposition.

QByteArray TMimeHeader::dataName ( ) const

Returns the value of the 'name' parameter in the header field content-disposition.

QByteArray TMimeHeader::header ( const QByteArray &  headerName) const

Returns the value of the header headerName.

bool TMimeHeader::isEmpty ( ) const
inline

Returns true if the MIME header is empty; otherwise returns false.

TMimeHeader & TMimeHeader::operator= ( const TMimeHeader other)

Assignment operator.

QString TMimeHeader::originalFileName ( ) const

Returns the value of the 'filename' parameter in the header field content-disposition, indicating the original name of the file before uploading.

QMap< QByteArray, QByteArray > TMimeHeader::parseHeaderParameter ( const QByteArray &  header)
staticprotected

Parses the MIME header header and returns the map of those headers.

This function is for internal use only.

void TMimeHeader::setHeader ( const QByteArray &  headerName,
const QByteArray &  value 
)

Sets the header headerName to be of value value.


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