|
VMime
|
#include <htmlTextPart.hpp>


Classes | |
| class | embeddedObject |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Text part of type 'text/html'.
| htmlTextPart | ( | ) |
| ~htmlTextPart | ( | ) |
| shared_ptr< const htmlTextPart::embeddedObject > addObject | ( | const string & | data, |
| const mediaType & | type | ||
| ) |
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an <img> tag.
| data | object data |
| type | data type |
References htmlTextPart::addObject(), encoding::decide(), and vmime::dynamicCast().
Referenced by htmlTextPart::addObject(), and htmlTextPart::addObject().
| shared_ptr< const htmlTextPart::embeddedObject > addObject | ( | shared_ptr< contentHandler > | data, |
| const encoding & | enc, | ||
| const mediaType & | type | ||
| ) |
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an <img> tag.
| data | object data |
| enc | data encoding |
| type | data type |
References vmime::dynamicCast(), messageId::generateId(), and htmlTextPart::embeddedObject::REFERENCED_BY_ID.
| shared_ptr< const htmlTextPart::embeddedObject > addObject | ( | shared_ptr< contentHandler > | data, |
| const mediaType & | type | ||
| ) |
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an <img> tag.
| data | object data |
| type | data type |
References htmlTextPart::addObject(), encoding::decide(), and vmime::dynamicCast().
| shared_ptr< const htmlTextPart::embeddedObject > findObject | ( | const string & | id | ) | const |
Return the embedded object with the specified identifier.
| id | object identifier |
References vmime::dynamicCast().
|
virtual |
Generate the text part(s) into the specified message.
| message | the message |
| parent | body part into which generate this part |
Implements textPart.
References encoding::decide(), vmime::dynamicCast(), vmime::contentDispositionTypes::INLINE, vmime::mediaTypes::MULTIPART, vmime::mediaTypes::MULTIPART_RELATED, vmime::mediaTypes::TEXT, vmime::mediaTypes::TEXT_HTML, vmime::mediaTypes::TEXT_PLAIN, and encoding::USAGE_TEXT.
| shared_ptr< const htmlTextPart::embeddedObject > getObjectAt | ( | const size_t | pos | ) | const |
Return the embedded object at the specified position.
| pos | position of the embedded object |
References vmime::dynamicCast().
| size_t getObjectCount | ( | ) | const |
Return the number of embedded objects.
|
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".
Implements textPart.
| shared_ptr< const contentHandler > getPlainText | ( | ) | const |
|
virtual |
Return the type of text part (eg: "text/html").
Implements textPart.
References vmime::mediaTypes::TEXT, and vmime::mediaTypes::TEXT_HTML.
Test the existence of an embedded object given its identifier.
| id | object identifier |
References vmime::dynamicCast().
|
virtual |
Parse the text part(s) from the specified message.
| message | message containing the text part |
| parent | part containing the text part |
| textPart | actual text part |
Implements textPart.
References vmime::fields::CONTENT_ID, vmime::fields::CONTENT_LOCATION, vmime::fields::CONTENT_TYPE, vmime::dynamicCast(), text::getWholeBuffer(), htmlTextPart::embeddedObject::REFERENCED_BY_ID, and htmlTextPart::embeddedObject::REFERENCED_BY_LOCATION.
Set the charset used to encode text in the text part.
| ch | text charset |
Implements textPart.
References vmime::dynamicCast().
| void setPlainText | ( | shared_ptr< contentHandler > | plainText | ) |
References vmime::dynamicCast().
|
virtual |
Set the text contained in the part.
| text | text of the part |
Implements textPart.
References text::clone().