Yate
Public Member Functions | Protected Member Functions

MimeLinesBody Class Reference

MIME for multiple text lines. More...

#include <yatemime.h>

Inheritance diagram for MimeLinesBody:
MimeBody GenObject

List of all members.

Public Member Functions

 MimeLinesBody (const String &type, const char *buf, int len)
 MimeLinesBody (const MimeHeaderLine &type, const char *buf, int len)
virtual ~MimeLinesBody ()
virtual void * getObject (const String &name) const
virtual MimeBodyclone () const
const ObjListlines () const
void addLine (const char *line)

Protected Member Functions

 MimeLinesBody (const MimeLinesBody &original)
virtual void buildBody () const

Detailed Description

MIME for multiple text lines.

An object holding MIME data as separate text lines


Constructor & Destructor Documentation

MimeLinesBody ( const String type,
const char *  buf,
int  len 
)

Constructor from block of data

Parameters:
typeThe value of the Content-Type header line
bufPointer to buffer of data
lenLength of data in buffer
MimeLinesBody ( const MimeHeaderLine type,
const char *  buf,
int  len 
)

Constructor from block of data

Parameters:
typeThe content type header line
bufPointer to buffer of data
lenLength of data in buffer
virtual ~MimeLinesBody ( ) [virtual]

Destructor

MimeLinesBody ( const MimeLinesBody original) [protected]

Copy constructor


Member Function Documentation

void addLine ( const char *  line) [inline]

Append a line of text to the data

Parameters:
lineText to append

References ObjList::append().

virtual void buildBody ( ) const [protected, virtual]

Override that is called internally to build the binary encoded body

Implements MimeBody.

virtual MimeBody* clone ( ) const [virtual]

Duplicate this MIME body

Returns:
Copy of this MIME body - a new MimeLinesBody

Implements MimeBody.

virtual void* getObject ( const String name) const [virtual]

RTTI method, get a pointer to a derived class given the 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 MimeBody.

const ObjList& lines ( ) const [inline]

Retrieve the stored lines of text

Returns:
List of Strings

The documentation for this class was generated from the following file: