plainTextPart Class Reference

Text part of type 'text/plain'. More...

Inheritance diagram for plainTextPart:
Inheritance graph
[legend]
Collaboration diagram for plainTextPart:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 plainTextPart ()
 ~plainTextPart ()
const mediaType getType () const
const charsetgetCharset () const
void setCharset (const charset &ch)
const ref< const contentHandlergetText () const
void setText (ref< contentHandler > text)
int getPartCount () const
void generateIn (ref< bodyPart > message, ref< bodyPart > parent) const
void parse (ref< const bodyPart > message, ref< const bodyPart > parent, ref< const bodyPart > textPart)

Detailed Description

Text part of type 'text/plain'.


Constructor & Destructor Documentation

plainTextPart (  ) 
~plainTextPart (  ) 

Member Function Documentation

void generateIn ( ref< bodyPart message,
ref< bodyPart parent 
) const [virtual]

Generate the text part(s) into the specified message.

Parameters:
message the message
parent body part into which generate this part

Implements textPart.

const charset & getCharset (  )  const [virtual]

Return the charset used to encode text in the text part.

Returns:
text charset

Implements textPart.

int getPartCount (  )  const [virtual]

Return the actual body parts this text part is composed of.

For example, HTML parts are composed of two parts: one "text/html" part, and the plain text part "text/plain".

Returns:
number of body parts

Implements textPart.

const ref< const contentHandler > getText (  )  const [virtual]

Return the text contained in the part.

Returns:
text of the part

Implements textPart.

const mediaType getType (  )  const [virtual]

Return the type of text part (eg: "text/html").

Returns:
type of text part

Implements textPart.

void parse ( ref< const bodyPart message,
ref< const bodyPart parent,
ref< const bodyPart textPart 
) [virtual]

Parse the text part(s) from the specified message.

Parameters:
message message containing the text part
parent part containing the text part
textPart actual text part

Implements textPart.

void setCharset ( const charset ch  )  [virtual]

Set the charset used to encode text in the text part.

Parameters:
ch text charset

Implements textPart.

void setText ( ref< contentHandler text  )  [virtual]

Set the text contained in the part.

Parameters:
text text of the part

Implements textPart.


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

Generated by  doxygen 1.6.2