TreeFrogFramework  2.8
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() [1/2]

TMimeHeader::TMimeHeader ( )
inline

◆ TMimeHeader() [2/2]

TMimeHeader::TMimeHeader ( const TMimeHeader other)

Copy constructor.

Member Function Documentation

◆ contentDispositionParameter()

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

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

◆ dataName()

QByteArray TMimeHeader::dataName ( ) const

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

◆ header()

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

Returns the value of the header headerName.

◆ isEmpty()

bool TMimeHeader::isEmpty ( ) const
inline

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

◆ operator=()

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

Assignment operator.

◆ originalFileName()

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.

◆ parseHeaderParameter()

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.

◆ setHeader()

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: