VMime
|
Public Member Functions | |
disposition () | |
disposition (const string &actionMode, const string &sendingMode, const string &type, const string &modifier) | |
shared_ptr< component > | clone () const |
void | copyFrom (const component &other) |
disposition & | operator= (const disposition &other) |
const std::vector< shared_ptr < component > > | getChildComponents () |
void | setActionMode (const string &mode) |
const string & | getActionMode () const |
void | setSendingMode (const string &mode) |
const string & | getSendingMode () const |
void | setType (const string &type) |
const string & | getType () const |
void | addModifier (const string &modifier) |
void | removeModifier (const string &modifier) |
void | removeAllModifiers () |
bool | hasModifier (const string &modifier) const |
const std::vector< string > | getModifierList () const |
Public Member Functions inherited from headerFieldValue | |
size_t | getGeneratedSize (const generationContext &ctx) |
Public Member Functions inherited from component | |
component () | |
virtual | ~component () |
void | parse (const string &buffer) |
void | parse (const parsingContext &ctx, const string &buffer) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t length) |
void | parse (const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
virtual const string | generate (const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const |
virtual void | generate (utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
virtual void | generate (const generationContext &ctx, utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
size_t | getParsedOffset () const |
size_t | getParsedLength () const |
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 () |
Disposition - from RFC-3798 (basic type).
disposition | ( | ) |
disposition | ( | const string & | actionMode, |
const string & | sendingMode, | ||
const string & | type, | ||
const string & | modifier | ||
) |
void addModifier | ( | const string & | modifier | ) |
Add a disposition modifier if it does not exist.
See the constants in vmime::dispositionModifiers.
modifier | modifier to add |
References disposition::hasModifier(), and stringUtils::toLower().
|
virtual |
|
virtual |
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.
Referenced by disposition::operator=().
|
protectedvirtual |
Implements component.
References generationContext::getMaxLineLength(), vmime::NEW_LINE_SEQUENCE, vmime::NEW_LINE_SEQUENCE_LENGTH, and stringUtils::trim().
const string & getActionMode | ( | ) | const |
Return the disposition action mode.
See the constants in vmime::dispositionActionModes.
|
virtual |
Return the list of children of this component.
Implements component.
const std::vector< string > getModifierList | ( | ) | const |
Return the list of modifiers.
const string & getSendingMode | ( | ) | const |
Return the disposition sending mode.
See the constants in vmime::dispositionSendingModes.
const string & getType | ( | ) | const |
bool hasModifier | ( | const string & | modifier | ) | const |
Test whether a disposition modifier is set.
modifier | modifier to test |
References stringUtils::toLower().
Referenced by disposition::addModifier().
disposition & operator= | ( | const disposition & | other | ) |
References disposition::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References parserHelpers::isSpace(), and vmime::npos.
void removeAllModifiers | ( | ) |
Remove all disposition modifiers.
void removeModifier | ( | const string & | modifier | ) |
Remove the specified disposition modifier.
See the constants in vmime::dispositionModifiers.
modifier | modifier to remove |
References stringUtils::toLower().
void setActionMode | ( | const string & | mode | ) |
Set the disposition action mode.
See the constants in vmime::dispositionActionModes.
mode | disposition action mode |
void setSendingMode | ( | const string & | mode | ) |
Set the disposition sending mode.
See the constants in vmime::dispositionSendingModes.
mode | disposition sending mode |
void setType | ( | const string & | type | ) |
Set the disposition type.
See the constants in vmime::dispositionTypes.
type | disposition type |