Home · All Classes · Grouped Classes · Annotated · Functions

QMailMessageContentType Class Reference

The QMailMessageContentType class encapsulates the parsing of the RFC 2822 'Content-Type' header field. More...

    #include <QMailMessageContentType>

This class is under development and is subject to change.

Inherits QMailMessageHeaderField.

Public Functions

Additional Inherited Members


Detailed Description

The QMailMessageContentType class encapsulates the parsing of the RFC 2822 'Content-Type' header field.

QMailMessageContentType provides simplified access to the various components of the 'Content-Type' header field. Components of the header field not exposed by member functions can be accessed using the functions inherited from QMailMessageHeaderField.


Member Function Documentation

QMailMessageContentType::QMailMessageContentType ( const QByteArray & type )

Creates a content type object from the data in type.

QMailMessageContentType::QMailMessageContentType ( const QMailMessageHeaderField & field )

Creates a content type object from the content of field.

QByteArray QMailMessageContentType::boundary () const

Returns the value of the 'boundary' parameter, if present; otherwise returns an empty QByteArray.

See also setBoundary().

QByteArray QMailMessageContentType::charset () const

Returns the value of the 'charset' parameter, if present; otherwise returns an empty QByteArray.

See also setCharset().

QByteArray QMailMessageContentType::name () const

Returns the value of the 'name' parameter, if present; otherwise returns an empty QByteArray.

See also setName().

void QMailMessageContentType::setBoundary ( const QByteArray & boundary )

Sets the value of the 'boundary' parameter to boundary.

See also boundary().

void QMailMessageContentType::setCharset ( const QByteArray & charset )

Sets the value of the 'charset' parameter to charset.

See also charset().

void QMailMessageContentType::setName ( const QByteArray & name )

Sets the value of the 'name' parameter to name.

See also name().

void QMailMessageContentType::setSubType ( const QByteArray & subType )

Sets the sub-type information of the 'Content-Type' header field to subType. If no primary type has been set, then setting the sub-type has no effect.

See also subType() and setType().

void QMailMessageContentType::setType ( const QByteArray & type )

Sets the primary type information of the 'Content-Type' header field to type. If type is empty, then any pre-existing sub-type information will be cleared.

See also type() and setSubType().

QByteArray QMailMessageContentType::subType () const

Returns the sub-type information of the 'Content-Type' header field.

For example: if content() returns "text/plain", then subType() returns "plain"

See also setSubType().

QByteArray QMailMessageContentType::type () const

Returns the primary type information of the content type header field.

For example: if content() returns "text/plain", then type() returns "text"

See also setType().


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3