|
VMime
|


Public Member Functions | |
| bool | hasBoundary () const |
| const string | getBoundary () const |
| void | setBoundary (const string &boundary) |
| bool | hasCharset () const |
| const charset | getCharset () const |
| void | setCharset (const charset &ch) |
| bool | hasReportType () const |
| const string | getReportType () const |
| void | setReportType (const string &reportType) |
Public Member Functions inherited from parameterizedHeaderField | |
| ~parameterizedHeaderField () | |
| void | copyFrom (const component &other) |
| parameterizedHeaderField & | operator= (const parameterizedHeaderField &other) |
| bool | hasParameter (const string ¶mName) const |
| shared_ptr< parameter > | findParameter (const string ¶mName) const |
| shared_ptr< parameter > | getParameter (const string ¶mName) |
| void | appendParameter (shared_ptr< parameter > param) |
| void | insertParameterBefore (shared_ptr< parameter > beforeParam, shared_ptr< parameter > param) |
| void | insertParameterBefore (const size_t pos, shared_ptr< parameter > param) |
| void | insertParameterAfter (shared_ptr< parameter > afterParam, shared_ptr< parameter > param) |
| void | insertParameterAfter (const size_t pos, shared_ptr< parameter > param) |
| void | removeParameter (shared_ptr< parameter > param) |
| void | removeParameter (const size_t pos) |
| void | removeAllParameters () |
| size_t | getParameterCount () const |
| bool | isEmpty () const |
| const shared_ptr< parameter > | getParameterAt (const size_t pos) |
| const shared_ptr< const parameter > | getParameterAt (const size_t pos) const |
| const std::vector< shared_ptr< const parameter > > | getParameterList () const |
| const std::vector< shared_ptr< parameter > > | getParameterList () |
| size_t | getGeneratedSize (const generationContext &ctx) |
| const std::vector< shared_ptr< component > > | getChildComponents () |
Public Member Functions inherited from headerField | |
| ~headerField () | |
| shared_ptr< component > | clone () const |
| headerField & | operator= (const headerField &other) |
| void | setName (const string &name) |
| const string | getName () const |
| bool | isCustom () const |
| virtual shared_ptr< const headerFieldValue > | getValue () const |
| template<typename T > | |
| shared_ptr< const T > | getValue () const |
| virtual shared_ptr< headerFieldValue > | getValue () |
| template<typename T > | |
| shared_ptr< T > | getValue () |
| virtual void | setValue (shared_ptr< headerFieldValue > value) |
| virtual void | setValueConst (shared_ptr< const headerFieldValue > value) |
| virtual void | setValue (const headerFieldValue &value) |
| void | setValue (const string &value) |
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 | |
| contentTypeField () | |
| contentTypeField (contentTypeField &) | |
Protected Member Functions inherited from parameterizedHeaderField | |
| parameterizedHeaderField () | |
| 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 headerField | |
| headerField () | |
| headerField (const string &fieldName) | |
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 () |
Additional Inherited Members | |
Static Public Member Functions inherited from headerField | |
| static shared_ptr< headerField > | parseNext (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Attributes inherited from headerField | |
| string | m_name |
| shared_ptr< headerFieldValue > | m_value |
|
protected |
|
protected |
| const string getBoundary | ( | ) | const |
Return the value of the "boundary" parameter.
Boundary is a random string used to separate body parts.
References parameterizedHeaderField::findParameter().
Referenced by body::generateImpl(), and body::setContents().
| const charset getCharset | ( | ) | const |
Return the value of the "charset" parameter.
It specifies the charset used in the body part contents.
References parameterizedHeaderField::findParameter().
| const string getReportType | ( | ) | const |
Return the value of the "report-type" parameter (RFC-1892).
References parameterizedHeaderField::findParameter().
Referenced by MDNHelper::isMDN().
| bool hasBoundary | ( | ) | const |
Test whether the "boundary" parameter is set.
References parameterizedHeaderField::hasParameter().
| bool hasCharset | ( | ) | const |
Test whether the "charset" parameter is set.
References parameterizedHeaderField::hasParameter().
| bool hasReportType | ( | ) | const |
Test whether the "report-type" parameter is set.
References parameterizedHeaderField::hasParameter().
| void setBoundary | ( | const string & | boundary | ) |
Set the value of the "boundary" parameter.
Boundary is a random string used to separate body parts. Normally, the boundary is generated automatically by VMime, you should not need to call this.
| boundary | new value for the "boundary" parameter |
References parameterizedHeaderField::getParameter(), and vmime::charsets::US_ASCII.
| void setCharset | ( | const charset & | ch | ) |
Set the value of the "charset" parameter.
It specifies the charset used in the body part contents.
| ch | new value for the "charset" parameter |
References parameterizedHeaderField::getParameter().
Referenced by body::setCharset().
| void setReportType | ( | const string & | reportType | ) |
Set the value of the "report-type" parameter (RFC-1892).
| reportType | new value for the "report-type" parameter |
References parameterizedHeaderField::getParameter(), and vmime::charsets::US_ASCII.