class MimeBody

Abstract MIME data holder. More...

Contains pure virtuals
Full nameTelEngine::MimeBody
Definition#include <yatemime.h>
InheritsTelEngine::GenObject [public ]
Inherited byMimeBinaryBody, MimeLinesBody, MimeSdpBody, MimeStringBody
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Members


Detailed Description

Abstract base class for holding Multipurpose Internet Mail Extensions data

 ~MimeBody ()

~MimeBody

[virtual]

Destructor

void*  getObject (const String& name)

getObject

[const virtual]

RTTI method, get a pointer to a derived class given that class name

Parameters:
nameName of the class we are asking for

Returns: Pointer to the requested class or NULL if this object doesn't implement it

Reimplemented from GenObject.

inline const String&  getType ()

getType

[const]

Retrive the MIME type of this body

Returns: Name of the MIME type/subtype

const DataBlock&  getBody ()

getBody

[const]

Retrive the binary encoding of this MIME body

Returns: Block of binary data

bool  isSDP ()

isSDP

[const virtual]

Check if this body is an Session Description Protocol

Returns: True if this body holds a SDP

bool  isMultipart ()

isMultipart

[const virtual]

Check if this body is multipart (can hold other MIME bodies)

Returns: True if this body is multipart

MimeBody*  clone ()

clone

[const pure virtual]

Duplicate this MIME body

Returns: Copy of this MIME body

MimeBody*  build (const char* buf, int len, const String& type)

build

[static]

Method to build a MIME body from a type and data buffer

Parameters:
bufPointer to buffer of data
lenLength of data in buffer
typeName of the MIME type/subtype, must be lower case

Returns: Newly allocated MIME body or NULL if type is unknown

String*  getUnfoldedLine (const char*& buf, int& len)

getUnfoldedLine

[static]

Utility method, returns an unfolded line and advances the pointer

Parameters:
bufReference to pointer to start of buffer data
lenReference to variable holding buffer length

Returns: Newly allocated String holding the line of text

 MimeBody (const String& type)

MimeBody

[protected]

Constructor to be used only by derived classes

Parameters:
typeName of the MIME type/subtype, must be lower case

void  buildBody ()

buildBody

[protected const pure virtual]

Method that is called internally to build the binary encoded body

mutable DataBlock m_body

m_body

[protected]


Generated by: root on dragoshel on Fri Aug 24 11:49:48 2007, using kdoc 2.0a54.