VMime
context Class Reference
Inheritance diagram for context:
Collaboration diagram for context:

Classes

class  switcher
 

Public Member Functions

virtual ~context ()
 
bool getInternationalizedEmailSupport () const
 
void setInternationalizedEmailSupport (const bool support)
 
const charsetConverterOptionsgetCharsetConversionOptions () const
 
void setCharsetConversionOptions (const charsetConverterOptions &opts)
 

Protected Member Functions

 context ()
 
 context (const context &ctx)
 
virtual contextoperator= (const context &ctx)
 
void copyFrom (const context &ctx)
 
- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Protected Attributes

bool m_internationalizedEmail
 
charsetConverterOptions m_charsetConvOptions
 

Detailed Description

Holds configuration parameters used either for parsing or generating messages.

Constructor & Destructor Documentation

~context ( )
virtual
context ( )
protected
context ( const context ctx)
protected

Member Function Documentation

void copyFrom ( const context ctx)
protected
const charsetConverterOptions & getCharsetConversionOptions ( ) const

Returns options used currently for charset conversions by the parser and/or the generator.

See charsetConverterOptions class for more information.

Returns
current charset conversion options

References context::m_charsetConvOptions.

bool getInternationalizedEmailSupport ( ) const

Returns whether support for Internationalized Email Headers (RFC-6532) is enabled.

Returns
true if RFC-6532 support is enabled, false otherwise

References context::m_internationalizedEmail.

Referenced by emailAddress::generateImpl(), wordEncoder::isEncodingNeeded(), parameter::parseImpl(), and word::parseWithState().

context & operator= ( const context ctx)
protectedvirtual

References context::copyFrom().

void setCharsetConversionOptions ( const charsetConverterOptions opts)

Sets the options used currently for charset conversions by the parser and/or the generator.

See charsetConverterOptions class for more information.

Parameters
optsnew charset conversion options

References context::m_charsetConvOptions.

void setInternationalizedEmailSupport ( const bool  support)

Enables or disables support for Internationalized Email Headers (RFC-6532).

This is disabled by default, and should be used only with servers which support it (eg. SMTP servers with SMTPUTF8 extension).

Parameters
supporttrue if RFC-6532 support is enabled, false otherwise

References context::m_internationalizedEmail.

Referenced by SMTPTransport::send().

Member Data Documentation


The documentation for this class was generated from the following files: