#include <mw/miutconv.h>
class TImEmailTransformingInfo |
Encapsulates character conversion and encoding settings for sending SMTP email.
The default outcomes for header, body, HTML, and attachment parts respectively for each of the listed categories are given below:
Plain Charset: ISO-8859-1,ISO-8859-1,N/A,N/A
Plain Encoding:None,None,N/A,UU
MIME Charset:UTF8,UTF8,UTF8*,N/A
MIME Encoding:B,QP,Base64,Base64
: the UTF8 value set in the header field, but no conversion is done. The HTML converter converts to UTF8.
IMPORT_C TImEncodingType | AttachmentEncoding | ( | ) | const |
Gets the attachment encoding.
IMPORT_C TUint | BodyTextCharset | ( | ) | const |
Gets the character set for the body text.
IMPORT_C TImEncodingType | BodyTextEncoding | ( | ) | const |
Gets the body text encoding.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream | ) | const |
IMPORT_C TUint | HeaderCharset | ( | ) | const |
Gets the character set for the header.
IMPORT_C TImEncodingType | HeaderEncoding | ( | ) | const |
Gets the header encoding.
IMPORT_C void | InternalizeL | ( | RReadStream & | aReadStream | ) |
IMPORT_C void | RestoreL | ( | CMsvStore & | aStore | ) |
Restores the object to the specified message store.
The function can leave with the standard stream leave codes.
Parameters | |
---|---|
aStore | Store to which to write |
IMPORT_C TImSendMethod | SendMethod | ( | ) | const |
Gets the current send method.
IMPORT_C void | SetAttachmentEncoding | ( | TImEncodingType | aType | ) |
Sets the encoding for email attachments.
This can be one of four possible values : EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU.
Parameters | |
---|---|
aType | The email attachment encoding. |
IMPORT_C void | SetBodyTextCharset | ( | TUint | aCharset | ) |
Sets the character set for body text.
Parameters | |
---|---|
aCharset | The character set. |
IMPORT_C void | SetBodyTextEncoding | ( | TImEncodingType | aType | ) |
Sets the body text encoding.
Parameters | |
---|---|
aType | The body text encoding. This can be one of four possible values: EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU. |
IMPORT_C void | SetHTMLCharset | ( | TUint | aCharset | ) |
Sets the HTML character set.
Parameters | |
---|---|
aCharset | The character set. |
IMPORT_C void | SetHTMLEncoding | ( | TImEncodingType | aType | ) |
Sets the encoding for HTML email.
Parameters | |
---|---|
aType | The HTML email encoding. This can be one of four possible values: EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU. |
IMPORT_C void | SetHeaderAndBodyCharset | ( | TUint | aCharset | ) |
Sets the character set used for both the header and body text.
Parameters | |
---|---|
aCharset | The character set. |
IMPORT_C void | SetHeaderCharset | ( | TUint | aCharset | ) |
Sets the character set used for the header.
Parameters | |
---|---|
aCharset | The character set. |
IMPORT_C void | SetSendMethod | ( | const TImSendMethod | aMethod | ) |
Sets the method by which email is sent.
This is either ESendAsSimpleEmail or ESendAsMimeEmail.
Parameters | |
---|---|
aMethod | The method by which email is sent. |
IMPORT_C void | SetToDefault | ( | const TImSendMethod | aMethod | ) |
Sets the member data to their default values, for the send method specified.
Parameters | |
---|---|
aMethod | The send method. |
IMPORT_C void | StoreL | ( | CMsvStore & | aStore | ) | const |
Writes the object to the specified message store.
The function can leave with the standard stream leave codes.
Parameters | |
---|---|
aStore | Store to which to write |
IMPORT_C TImEmailTransformingInfo & | operator= | ( | const TImEmailTransformingInfo & | aInfo | ) |
Overloaded assignment operator.
Parameters | |
---|---|
aInfo | Object from which to copy settings |
IMPORT_C TBool | operator== | ( | const TImEmailTransformingInfo & | aInfo | ) |
Overloaded equality operator.
Parameters | |
---|---|
aInfo | Object with which to compare this object |