|
VMime
|
#include <mediaType.hpp>


Protected Member Functions | |
| void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Protected Attributes | |
| string | m_type |
| string | m_subType |
Content media type (basic type).
| mediaType | ( | ) |
References component::parse().
|
virtual |
Clone this component.
Implements component.
References vmime::dynamicCast(), mediaType::m_subType, and mediaType::m_type.
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References vmime::dynamicCast(), mediaType::m_subType, and mediaType::m_type.
Referenced by mediaType::operator=().
|
protectedvirtual |
Implements component.
References vmime::dynamicCast(), mediaType::m_subType, mediaType::m_type, vmime::NEW_LINE_SEQUENCE, and vmime::NEW_LINE_SEQUENCE_LENGTH.
|
virtual |
Return the list of children of this component.
Implements component.
Return the media subtype.
See the constants in vmime::mediaTypes.
References mediaType::m_subType.
Referenced by attachmentHelper::getBodyPartAttachment(), and MDNHelper::isMDN().
Return the media type.
See the constants in vmime::mediaTypes.
References mediaType::m_type.
Referenced by IMAPMessagePartContentHandler::generate(), streamContentHandler::generate(), stringContentHandler::generate(), attachmentHelper::getBodyPartAttachment(), attachmentHelper::isBodyPartAnAttachment(), MDNHelper::isMDN(), and body::parseImpl().
References mediaType::copyFrom().
References component::parse().
References mediaType::m_subType, and mediaType::m_type.
|
protectedvirtual |
Reimplemented from component.
References vmime::dynamicCast(), vmime::end(), mediaType::m_subType, mediaType::m_type, component::setParsedBounds(), stringUtils::toLower(), and stringUtils::trim().
Set the media type and subtype from a string in the form "type/subtype" (eg: "image/jpeg").
| type | media type and subtype |
References component::parse().
Set the media subtype.
See the constants in vmime::mediaTypes.
| subType | media subtype |
References vmime::dynamicCast(), mediaType::m_subType, and stringUtils::toLower().
Set the media type.
See the constants in vmime::mediaTypes.
| type | media type |
References mediaType::m_type, and stringUtils::toLower().
|
protected |
|
protected |