#include <yatemime.h>
Inheritance diagram for MimeBody:
Public Member Functions | |
virtual | ~MimeBody () |
virtual void * | getObject (const String &name) const |
const String & | getType () const |
const DataBlock & | getBody () const |
virtual bool | isSDP () const |
virtual bool | isMultipart () const |
virtual MimeBody * | clone () const=0 |
Static Public Member Functions | |
static MimeBody * | build (const char *buf, int len, const String &type) |
static String * | getUnfoldedLine (const char *&buf, int &len) |
Protected Member Functions | |
MimeBody (const String &type) | |
virtual void | buildBody () const=0 |
Protected Attributes | |
DataBlock | m_body |
Abstract base class for holding Multipurpose Internet Mail Extensions data
virtual ~MimeBody | ( | ) | [virtual] |
Destructor
Constructor to be used only by derived classes
type | Name of the MIME type/subtype, must be lower case |
virtual void* getObject | ( | const String & | name | ) | const [virtual] |
RTTI method, get a pointer to a derived class given that class name
name | Name of the class we are asking for |
Reimplemented from GenObject.
Reimplemented in MimeSdpBody, MimeBinaryBody, MimeStringBody, and MimeLinesBody.
const String& getType | ( | ) | const [inline] |
Retrive the MIME type of this body
const DataBlock& getBody | ( | ) | const |
Retrive the binary encoding of this MIME body
virtual bool isSDP | ( | ) | const [inline, virtual] |
Check if this body is an Session Description Protocol
Reimplemented in MimeSdpBody.
virtual bool isMultipart | ( | ) | const [inline, virtual] |
Check if this body is multipart (can hold other MIME bodies)
virtual MimeBody* clone | ( | ) | const [pure virtual] |
Duplicate this MIME body
Implemented in MimeSdpBody, MimeBinaryBody, MimeStringBody, and MimeLinesBody.
Method to build a MIME body from a type and data buffer
buf | Pointer to buffer of data | |
len | Length of data in buffer | |
type | Name of the MIME type/subtype, must be lower case |
static String* getUnfoldedLine | ( | const char *& | buf, | |
int & | len | |||
) | [static] |
Utility method, returns an unfolded line and advances the pointer
buf | Reference to pointer to start of buffer data | |
len | Reference to variable holding buffer length |
virtual void buildBody | ( | ) | const [protected, pure virtual] |
Method that is called internally to build the binary encoded body
Implemented in MimeSdpBody, MimeBinaryBody, MimeStringBody, and MimeLinesBody.
Block of binary data that buildBody() must fill