|  | Home |

# QMailMessageContentDisposition Class Reference

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 and QMailMessageContentDispositionFwd.

- List of all members, including inherited members

## Public Functions

| QMailMessageContentDisposition ( const QByteArray & type )
| QMailMessageContentDisposition ( DispositionType type )
| QMailMessageContentDisposition ( const QMailMessageHeaderField & field )
QMailTimeStamp | creationDate () const
QByteArray | filename () const
QMailTimeStamp | modificationDate () const
QMailTimeStamp | readDate () const
void | setCreationDate ( const QMailTimeStamp & timeStamp )
void | setFilename ( const QByteArray & filename )
void | setModificationDate ( const QMailTimeStamp & timeStamp )
void | setReadDate ( const QMailTimeStamp & timeStamp )
void | setSize ( int size )
void | setType ( DispositionType type )
int | size () const
DispositionType | type () const

- 12 public functions inherited from QMailMessageHeaderField

### Additional Inherited Members

- 8 static public members inherited from QMailMessageHeaderField

## 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 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().