CImHeader Class Reference
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.
Constructor & Destructor Documentation
Member Functions Documentation
AddEncodingInfoL(TImHeaderEncodingInfo &)
Adds header field encoding information.
BodyEncoding()
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.
TMsgOutboxBodyEncoding
Charset()
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().
SetCharset() EncodingInfo()
ConstructL()
void | ConstructL | ( | ) | [private] |
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.
CreateReceiptL(CImHeader &, TDesC &)
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.
DataSize()
Gets the combined length of all the field values stored.
EncodingInfo()
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.
FormatSubjectL(CImHeader &, TDesC &)
From()
IMPORT_C const TPtrC | From | ( | ) | const |
Gets the "From" header field.
This consists of an address and (possibly) an alias.
ImMsgId()
IMPORT_C const TPtrC8 | ImMsgId | ( | ) | const |
Gets the "MessageId" header field.
InReplyTo()
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().
InternalizeL(RMsvReadStream &)
Internalises the settings from a specified stream.
IsRecipientPresent(CImHeader &, TPtrC16)
checks if the recipient already exists in "Cc" or "To" list
Parameters
CImHeader & aCImHeader | Contains "To" and "Cc" lists |
TPtrC16 newRecipient | Recipient to be checked for duplicate |
NewLC()
Allocates and creates a new CImHeader object, leaving the object on the cleanup stack.
ReDecodeL(RFs &)
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.
-
leave
- KErrNotSupported Encoded header information has not been saved.
Parameters
RFs & aFS | A file server session handle. |
ReadRecipientsL(RReadStream &, CDesCArray *)
ReceiptAddress()
IMPORT_C const TPtrC | ReceiptAddress | ( | ) | const |
Gets the "Receipt" header field.
RemoteSize()
const TUint | RemoteSize | ( | ) | const [inline] |
ReplyTo()
IMPORT_C const TPtrC | ReplyTo | ( | ) | const |
Gets the "ReplyTo" header field.
ResentBccRecipients()
const CDesCArray & | ResentBccRecipients | ( | ) | const [inline] |
ResentCcRecipients()
const CDesCArray & | ResentCcRecipients | ( | ) | const [inline] |
ResentFrom()
IMPORT_C const TPtrC | ResentFrom | ( | ) | const |
ResentMsgId()
IMPORT_C const TPtrC8 | ResentMsgId | ( | ) | const |
ResentToRecipients()
const CDesCArray & | ResentToRecipients | ( | ) | const [inline] |
RestoreL(CMsvStore &)
IMPORT_C void | RestoreL | ( | CMsvStore & | aMessageStore | ) | |
Restores settings from a specified message store.
Parameters
CMsvStore & aMessageStore | Message store to read from |
SaveEncodedHeadersL()
IMPORT_C void | SaveEncodedHeadersL | ( | ) | |
SetBodyEncoding(TMsgOutboxBodyEncoding)
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
SetCharset(const TUint)
IMPORT_C void | SetCharset | ( | const TUint | aCharset | ) | |
Parameters
const TUint aCharset | Identifier for the character set. Character sets idenitifiers are defined by the character conversion API in charconv.h. |
SetFromL(const TDesC8 &)
IMPORT_C void | SetFromL | ( | const TDesC8 & | aFrom | ) | |
Sets the "From" header field.
Parameters
const TDesC8 & aFrom | Field value |
SetFromL(const TDesC16 &)
IMPORT_C void | SetFromL | ( | const TDesC16 & | aFrom | ) | |
Sets the "From" header field.
SetImMsgIdL(const TDesC8 &)
IMPORT_C void | SetImMsgIdL | ( | const TDesC8 & | aImMsgIdL | ) | |
Sets the "MessageId" header field.
Sets the "MessageId" header field.
Parameters
const TDesC8 & aImMsgIdL | Field value |
SetInReplyToL(const TDesC8 &)
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.
Parameters
const TDesC8 & | "In Reply To" header field |
SetOverrideCharset(TUint)
IMPORT_C void | SetOverrideCharset | ( | TUint | aCharset | ) | |
Sets the character set to be used when calling ReDecodeL.
Parameters
TUint aCharset | The new character set. |
SetReceiptAddressL(const TDesC8 &)
IMPORT_C void | SetReceiptAddressL | ( | const TDesC8 & | aReceiptAddress | ) | |
Sets the "Receipt" header field.
Sets the "Receipt" header field.
Parameters
const TDesC8 & aReceiptAddress | Field value |
SetReceiptAddressL(const TDesC16 &)
IMPORT_C void | SetReceiptAddressL | ( | const TDesC16 & | aReceiptAddress | ) | |
Sets the "Receipt" header field.
Sets the "Receipt" header field.
Parameters
const TDesC16 & aReceiptAddress | Field value |
SetRemoteSize(TUint)
void | SetRemoteSize | ( | TUint | aSize | ) | [inline] |
SetReplyToL(const TDesC8 &)
IMPORT_C void | SetReplyToL | ( | const TDesC8 & | aReplyTo | ) | |
Sets the "ReplyTo" header field.
Parameters
const TDesC8 & aReplyTo | Field value |
SetReplyToL(const TDesC16 &)
IMPORT_C void | SetReplyToL | ( | const TDesC16 & | aReplyTo | ) | |
Sets the "ReplyTo" header field.
Parameters
const TDesC16 & aReplyTo | Field value |
SetResentFromL(const TDesC &)
IMPORT_C void | SetResentFromL | ( | const TDesC & | | ) | |
SetResentMsgIdL(const TDesC8 &)
IMPORT_C void | SetResentMsgIdL | ( | const TDesC8 & | | ) | |
SetSubjectL(const TDesC8 &)
IMPORT_C void | SetSubjectL | ( | const TDesC8 & | aSubject | ) | |
SetSubjectL(const TDesC16 &)
IMPORT_C void | SetSubjectL | ( | const TDesC16 & | aSubject | ) | |
Sets the "Subject" header field.
Parameters
const TDesC16 & aSubject | Field value |
SetVersion(TUint16)
void | SetVersion | ( | TUint16 | aVersion | ) | [inline] |
StoreL(CMsvStore &)
IMPORT_C void | StoreL | ( | CMsvStore & | aMessageStore | ) | const |
Stores, but does not commit, settings to a specified message store.
Parameters
CMsvStore & aMessageStore | Message store to write to |
StoreWithoutCommitL(CMsvStore &)
IMPORT_C void | StoreWithoutCommitL | ( | CMsvStore & | aMessageStore | ) | const |
Stores, but does not commit, settings to a specified message store.
Parameters
CMsvStore & aMessageStore | Message store to write to |
Subject()
IMPORT_C const TPtrC | Subject | ( | ) | const |
Gets the "Subject" header field.
ToRecipients()
Gets a const list of "To" recipients.
ToRecipients()
Gets a list of "To" recipients.
Version()
const TUint16 | Version | ( | ) | const [inline] |
WriteRecipientsL(RWriteStream &, const CDesCArray *)
Member Enumerations Documentation
Enum TReplyTo
Flags used to determine where to obtain the ReplyTo address for the header field of that name.
Enumerators
EOriginator |
Get address from originator.
|
ESender |
Get address from sender.
|
EAll |
Get address from all sources.
|
ERecipients |
Get address from recipients.
|
Member Data Documentation
TUint
i822HeaderCharset
TUint
| i822HeaderCharset | [private] |
TMsgOutboxBodyEncoding
iBodyEncoding
CImEncodedHeader * iEncodedHeader
CArrayFix< TImHeaderEncodingInfo > * iEncodingInfo
TUint
iRemoteSize
TUint
| iRemoteSize | [private] |
HBufC * iResentFrom
HBufC * | iResentFrom | [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.