|
VMime
|


Classes | |
| class | embeddedObject |
Public Member Functions | |
| htmlTextPart () | |
| ~htmlTextPart () | |
| const mediaType | getType () const |
| const charset & | getCharset () const |
| void | setCharset (const charset &ch) |
| shared_ptr< const contentHandler > | getPlainText () const |
| void | setPlainText (shared_ptr< contentHandler > plainText) |
| const shared_ptr< const contentHandler > | getText () const |
| void | setText (shared_ptr< contentHandler > text) |
| bool | hasObject (const string &id) const |
| shared_ptr< const embeddedObject > | findObject (const string &id) const |
| size_t | getObjectCount () const |
| shared_ptr< const embeddedObject > | getObjectAt (const size_t pos) const |
| shared_ptr< const embeddedObject > | addObject (const string &data, const mediaType &type) |
| shared_ptr< const embeddedObject > | addObject (shared_ptr< contentHandler > data, const mediaType &type) |
| shared_ptr< const embeddedObject > | addObject (shared_ptr< contentHandler > data, const encoding &enc, const mediaType &type) |
| size_t | getPartCount () const |
| void | generateIn (shared_ptr< bodyPart > message, shared_ptr< bodyPart > parent) const |
| void | parse (shared_ptr< const bodyPart > message, shared_ptr< const bodyPart > parent, shared_ptr< const bodyPart > textPart) |
Public Member Functions inherited from textPart | |
| virtual | ~textPart () |
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 encoding::decide(), and htmlTextPart::embeddedObject::embeddedObject().
Referenced by htmlTextPart::addObject(), and htmlTextPart::hasObject().
| 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(), and encoding::decide().
| 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 htmlTextPart::addObject(), messageId::generateId(), messageId::getId(), and htmlTextPart::embeddedObject::REFERENCED_BY_ID.
| shared_ptr< const htmlTextPart::embeddedObject > findObject | ( | const string & | id | ) | const |
Return the embedded object with the specified identifier.
| id | object identifier |
Generate the text part(s) into the specified message.
| message | the message |
| parent | body part into which generate this part |
Implements textPart.
References vmime::clone(), vmime::fields::CONTENT_ID, vmime::fields::CONTENT_LOCATION, vmime::fields::CONTENT_TYPE, encoding::decide(), bodyPart::getBody(), bodyPart::getHeader(), 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.
|
virtual |
| 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 |
| 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 |
|
virtual |
Return the type of text part (eg: "text/html").
Implements textPart.
References vmime::mediaTypes::TEXT, and vmime::mediaTypes::TEXT_HTML.
| bool hasObject | ( | const string & | id | ) | const |
Test the existence of an embedded object given its identifier.
| id | object identifier |
References htmlTextPart::addObject().
|
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, bodyPart::getBody(), bodyPart::getHeader(), messageId::getId(), mediaType::getSubType(), mediaType::getType(), text::getWholeBuffer(), vmime::mediaTypes::MULTIPART, vmime::mediaTypes::MULTIPART_ALTERNATIVE, vmime::npos, htmlTextPart::embeddedObject::REFERENCED_BY_ID, htmlTextPart::embeddedObject::REFERENCED_BY_LOCATION, vmime::mediaTypes::TEXT, and vmime::mediaTypes::TEXT_PLAIN.
|
virtual |
Set the charset used to encode text in the text part.
| ch | text charset |
Implements textPart.
| void setPlainText | ( | shared_ptr< contentHandler > | plainText | ) |
|
virtual |