Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMailMessageContentDisposition Class Reference
[QtMessagingModule, QtPimModule]

The QMailMessageContentDisposition class encapsulates the parsing of the RFC 2822 'Content-Disposition' header field. More...

    #include <QMailMessageContentDisposition>

This class is under development and is subject to change.

Inherits QMailMessageHeaderField.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QMailMessageContentDisposition class encapsulates the parsing of the RFC 2822 'Content-Disposition' header field.

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


Member Type Documentation

enum QMailMessageContentDisposition::DispositionType

This enum type is used to describe the disposition of a message part.

ConstantValueDescription
QMailMessageContentDisposition::Attachment2The part data should be presented as an attachment.
QMailMessageContentDisposition::Inline1The part data should be presented inline.
QMailMessageContentDisposition::None0The disposition of the part is unknown.


Member Function Documentation

QMailMessageContentDisposition::QMailMessageContentDisposition ( const QByteArray & type )

Creates a disposition header field object from the data in type.

QMailMessageContentDisposition::QMailMessageContentDisposition ( DispositionType type )

Creates a 'Content-Disposition' header field object with the type type.

QMailMessageContentDisposition::QMailMessageContentDisposition ( const QMailMessageHeaderField & field )

Creates a disposition header field object from the content of field.

QMailTimeStamp QMailMessageContentDisposition::creationDate () const

Returns the value of the 'creation-date' parameter, if present; otherwise returns an uninitialised time stamp.

See also setCreationDate().

QByteArray QMailMessageContentDisposition::filename () const

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

See also setFilename().

QMailTimeStamp QMailMessageContentDisposition::modificationDate () const

Returns the value of the 'modification-date' parameter, if present; otherwise returns an uninitialised time stamp.

See also setModificationDate().

QMailTimeStamp QMailMessageContentDisposition::readDate () const

Returns the value of the 'read-date' parameter, if present; otherwise returns an uninitialised time stamp.

See also setReadDate().

void QMailMessageContentDisposition::setCreationDate ( const QMailTimeStamp & timeStamp )

Sets the value of the 'creation-date' parameter to timeStamp.

See also creationDate().

void QMailMessageContentDisposition::setFilename ( const QByteArray & filename )

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

See also filename().

void QMailMessageContentDisposition::setModificationDate ( const QMailTimeStamp & timeStamp )

Sets the value of the 'modification-date' parameter to timeStamp.

See also modificationDate().

void QMailMessageContentDisposition::setReadDate ( const QMailTimeStamp & timeStamp )

Sets the value of the 'read-date' parameter to timeStamp.

See also readDate().

void QMailMessageContentDisposition::setSize ( int size )

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

See also size().

void QMailMessageContentDisposition::setType ( DispositionType type )

Sets the disposition type of this field to type.

See also type().

int QMailMessageContentDisposition::size () const

Returns the value of the 'size' parameter, if present; otherwise returns -1.

See also setSize().

DispositionType QMailMessageContentDisposition::type () const

Returns the disposition type of this header field.

See also setType().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3