Class Multipart.

Inherits Garbage. Inherited by Bodypart and Message.

This class represents the common characteristics of Messages and Bodyparts, namely that they have a header() and children().

Multipart::Multipart()

Constructs an empty Multipart object.

Reimplements Garbage::Garbage().

void Multipart::appendAnyPart( EString & r, const Bodypart * bp, ContentType * ct ) const

This function appends the text of the MIME bodypart bp with Content-type ct to the string r.

The details of this function are certain to change.

void Multipart::appendMultipart( EString & r ) const

Appends the text of this multipart MIME entity to the string r.

void Multipart::appendTextPart( EString & r, const Bodypart * bp, ContentType * ct ) const

This function appends the text of the MIME bodypart bp with Content-type ct to the string r.

The details of this function are certain to change.

List< Bodypart > * Multipart::children() const

Returns a pointer to a list of Bodyparts belonging to this object. May return an empty list, but never returns a null pointer.

Header * Multipart::header() const

Returns a pointer to the Header for this Multipart object, or 0 if none has been set with setHeader().

Both Message and Bodypart always create a Header at construction.

bool Multipart::isBodypart() const

This virtual function returns true if the object is a Bodypart, false if not.

bool Multipart::isMessage() const

This virtual function returns true if the object is a Message, false if not.

Multipart * Multipart::parent() const

Returns a pointer to the parent of this Multipart, or 0 if this is a top-level MIME object.

void Multipart::setHeader( Header * hdr )

Sets the header of this Multipart object to hdr.

void Multipart::setParent( Multipart * pt )

Sets the parent of this Multipart object to pt.

Multipart::~Multipart()

Exists only to avoid compiler warnings.

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.