class CImHeader : public CBase |
Encapsulates an Internet Mail (RFC822) header.
Note that the class contains some obsolete functions that take a narrow descriptor: always use the equivalent wide descriptor function instead.
Private Member Functions | |
---|---|
CImHeader () | |
void | ConstructL () |
void | FormatSubjectL ( CImHeader &, TDesC &) |
TBool | IsRecipientPresent ( CImHeader &, TPtrC16 ) |
void | ReadRecipientsL ( RReadStream &, CDesCArray *) |
void | WriteRecipientsL ( RWriteStream &, const CDesCArray *) |
Public Member Enumerations | |
---|---|
enum | TReplyTo { EOriginator , ESender , EAll , ERecipients } |
Private Attributes | |
---|---|
TUint | i822HeaderCharset |
CDesCArray * | iBcc |
TMsgOutboxBodyEncoding | iBodyEncoding |
CDesCArray * | iCc |
CImEncodedHeader * | iEncodedHeader |
CArrayFix < TImHeaderEncodingInfo > * | iEncodingInfo |
HBufC16 * | iFrom |
HBufC8 * | iImMsgId |
HBufC8 * | iInReplyTo |
HBufC16 * | iReceipt |
TUint | iRemoteSize |
HBufC16 * | iReplyTo |
CDesCArray * | iResentBcc |
CDesCArray * | iResentCc |
HBufC * | iResentFrom |
HBufC8 * | iResentMsgId |
CDesCArray * | iResentTo |
HBufC * | iSubject |
CDesCArray * | iTo |
TUint16 | iVersion |
IMPORT_C void | AddEncodingInfoL | ( | TImHeaderEncodingInfo & | aInfo | ) |
Adds header field encoding information.
TImHeaderEncodingInfo & aInfo | Header field encoding information |
IMPORT_C TMsgOutboxBodyEncoding | BodyEncoding | ( | ) | const |
Gets the method of encoding the body of the email message.
The default value (EMsgOutboxMIME) is set so that text parts of the message are sent as MIME multipart/alternative text/html parts, and are encoded using UTF-8.
IMPORT_C TUint | Charset | ( | ) | const |
Gets the character set to use when sending the message header.
If set, this overrides the default system character set for sending the header.
Character set and encoding options can also be set on a per header field basis using TImHeaderEncodingInfo objects. See EncodingInfo() .
IMPORT_C TInt | CreateForwardL | ( | CImHeader & | , |
TDesC & | ||||
) |
Populates a new forward header.
The subject line passed in is used to construct the forward subject field value. This is then stored in the new header.
IMPORT_C TInt | CreateReplyL | ( | CImHeader & | , |
TReplyTo | , | |||
TDesC & | ||||
) |
Populates a new Reply header.
The subject line passed in is used to construct the Reply subject field value. This is then stored in the new header.
CArrayFix < TImHeaderEncodingInfo > & | EncodingInfo | ( | ) | [inline] |
Gets information relating to the encoding of header fields in received email.
This includes the charset. This information can be used when forwarding the email, to re-encode the header fields.
IMPORT_C const TPtrC | From | ( | ) | const |
Gets the "From" header field.
This consists of an address and (possibly) an alias.
IMPORT_C const TPtrC8 | InReplyTo | ( | ) | const |
Gets the "In Reply To" header field.
For reply messages, this field stores the ID of the message to which this is a reply. It is set by CImHeader::CreateReplyL() .
IMPORT_C void | InternalizeL | ( | RMsvReadStream & | aReadStream | ) |
Internalises the settings from a specified stream.
RMsvReadStream & aReadStream | Stream to read from |
TBool | IsRecipientPresent | ( | CImHeader & | aCImHeader, |
TPtrC16 | newRecipient | |||
) | [private] |
checks if the recipient already exists in "Cc" or "To" list
IMPORT_C CImHeader * | NewLC | ( | ) | [static] |
Allocates and creates a new CImHeader object, leaving the object on the cleanup stack.
IMPORT_C void | ReDecodeL | ( | RFs & | aFS | ) |
Decodes the original message data into the CImHeader fields using the override character set.
8 bit data MUST be decoded using the normal method initially before this method is called.
RFs & aFS | A file server session handle. |
void | ReadRecipientsL | ( | RReadStream & | , |
CDesCArray * | ||||
) | [private] |
RReadStream & | |
CDesCArray * |
IMPORT_C void | RestoreL | ( | CMsvStore & | aMessageStore | ) |
Restores settings from a specified message store.
CMsvStore & aMessageStore | Message store to read from |
IMPORT_C void | SetBodyEncoding | ( | TMsgOutboxBodyEncoding | aMessageBodyEncoding | ) |
Sets the method of encoding the body of the email message.
The default value (EMsgOutboxMIME) is set so that text parts of the message are sent as MIME multipart/alternative text/html parts, and are encoded using UTF-8.
TMsgOutboxBodyEncoding aMessageBodyEncoding | Method of encoding |
IMPORT_C void | SetCharset | ( | const TUint | aCharset | ) |
Sets the character set to use when sending the message header.
This setting overrides the default system character set for sending the header.
Character set and encoding options can also be set on a per header field basis using TImHeaderEncodingInfo objects. See AddEncodingInfoL() .
const TUint aCharset | Identifier for the character set. Character sets idenitifiers are defined by the character conversion API in charconv.h. |
IMPORT_C void | SetFromL | ( | const TDesC8 & | aFrom | ) |
Sets the "From" header field.
const TDesC8 & aFrom | Field value |
IMPORT_C void | SetFromL | ( | const TDesC16 & | aFrom | ) |
Sets the "From" header field.
const TDesC16 & aFrom | Field value |
IMPORT_C void | SetImMsgIdL | ( | const TDesC8 & | aImMsgIdL | ) |
Sets the "MessageId" header field.
Sets the "MessageId" header field.
const TDesC8 & aImMsgIdL | Field value |
IMPORT_C void | SetInReplyToL | ( | const TDesC8 & | ) |
Sets the "In Reply To" header field.
For reply messages, this field stores the ID of the message to which this is a reply.
const TDesC8 & | "In Reply To" header field |
IMPORT_C void | SetOverrideCharset | ( | TUint | aCharset | ) |
Sets the character set to be used when calling ReDecodeL.
TUint aCharset | The new character set. |
IMPORT_C void | SetReceiptAddressL | ( | const TDesC8 & | aReceiptAddress | ) |
Sets the "Receipt" header field.
Sets the "Receipt" header field.
const TDesC8 & aReceiptAddress | Field value |
IMPORT_C void | SetReceiptAddressL | ( | const TDesC16 & | aReceiptAddress | ) |
Sets the "Receipt" header field.
Sets the "Receipt" header field.
const TDesC16 & aReceiptAddress | Field value |
IMPORT_C void | SetReplyToL | ( | const TDesC8 & | aReplyTo | ) |
Sets the "ReplyTo" header field.
const TDesC8 & aReplyTo | Field value |
IMPORT_C void | SetReplyToL | ( | const TDesC16 & | aReplyTo | ) |
Sets the "ReplyTo" header field.
const TDesC16 & aReplyTo | Field value |
IMPORT_C void | SetResentFromL | ( | const TDesC & | ) |
const TDesC & |
IMPORT_C void | SetResentMsgIdL | ( | const TDesC8 & | ) |
const TDesC8 & |
IMPORT_C void | SetSubjectL | ( | const TDesC8 & | aSubject | ) |
const TDesC8 & aSubject |
IMPORT_C void | SetSubjectL | ( | const TDesC16 & | aSubject | ) |
Sets the "Subject" header field.
const TDesC16 & aSubject | Field value |
IMPORT_C void | StoreL | ( | CMsvStore & | aMessageStore | ) | const |
Stores, but does not commit, settings to a specified message store.
CMsvStore & aMessageStore | Message store to write to |
IMPORT_C void | StoreWithoutCommitL | ( | CMsvStore & | aMessageStore | ) | const |
Stores, but does not commit, settings to a specified message store.
CMsvStore & aMessageStore | Message store to write to |
const CDesCArray & | ToRecipients | ( | ) | const [inline] |
Gets a const list of "To" recipients.
void | WriteRecipientsL | ( | RWriteStream & | , |
const CDesCArray * | ||||
) | const [private] |
RWriteStream & | |
const CDesCArray * |
Flags used to determine where to obtain the ReplyTo address for the header field of that name.
EOriginator |
Get address from originator. |
ESender |
Get address from sender. |
EAll |
Get address from all sources. |
ERecipients |
Get address from recipients. |
CArrayFix < TImHeaderEncodingInfo > * | iEncodingInfo | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.