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()

~context ( )
virtual

◆ context() [1/2]

context ( )
protected

◆ context() [2/2]

context ( const context ctx)
protected

Member Function Documentation

◆ copyFrom()

void copyFrom ( const context ctx)
protected

◆ getCharsetConversionOptions()

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.

◆ getInternationalizedEmailSupport()

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().

◆ operator=()

context & operator= ( const context ctx)
protectedvirtual

References context::copyFrom().

◆ setCharsetConversionOptions()

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.

◆ setInternationalizedEmailSupport()

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.

Member Data Documentation

◆ m_charsetConvOptions

◆ m_internationalizedEmail


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