|
||
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CImHeader
- Encapsulates an Internet Mail (RFC822) header.
Defined in CImHeader
:
AddEncodingInfoL(TImHeaderEncodingInfo &)
Adds header field encoding information.BccRecipients()
Gets a list of "Bcc" recipients. BccRecipients()const
Gets a const list of "Bcc" recipients. BodyEncoding()const
Gets the method of encoding the body of the email message.CcRecipients()
Gets a list of "Cc" recipients. CcRecipients()const
Gets a const list of "Cc" recipients. Charset()const
Gets the character set to use when sending the message header.CreateForwardL(CImHeader &,TDesC &)
Populates a new forward header.CreateReceiptL(CImHeader &,TDesC &)
Populates a Receipt email header.CreateReplyL(CImHeader &,TReplyTo,TDesC &)
Populates a new Reply header.DataSize()
Gets the combined length of all the field values stored.EAll
Get address from all sources. EOriginator
Get address from originator. ERecipients
Get address from recipients. ESender
Get address from sender. EncodingInfo()
Gets information relating to the encoding of header fields in received email.EncodingInfo()const
Gets const information relating to the encoding of header fields in received ema...ExternalizeL(RMsvWriteStream &)const
Externalises the settings to a specified stream.From()const
Gets the "From" header field.ImMsgId()const
Gets the "MessageId" header field.InReplyTo()const
Gets the "In Reply To" header field.InternalizeL(RMsvReadStream &)
Internalises the settings from a specified stream.NewLC()
Allocates and creates a new CImHeader object, leaving the object on the cleanup ...OverrideCharset()const
Returns the character set to be used when calling ReDecodeL. ReDecodeL(RFs &)
Decodes the original message data into the CImHeader fields using the override c...ReceiptAddress()const
Gets the "Receipt" header field.RemoteSize()const
ReplyTo()const
Gets the "ReplyTo" header field.ResentBccRecipients()
ResentBccRecipients()const
ResentCcRecipients()
ResentCcRecipients()const
ResentFrom()const
ResentMsgId()const
ResentToRecipients()
ResentToRecipients()const
Reset()
Resets all header field values. RestoreL(CMsvStore &)
Restores settings from a specified message store.SetBodyEncoding(TMsgOutboxBodyEncoding)
Sets the method of encoding the body of the email message.SetCharset(const TUint)
Sets the character set to use when sending the message header.SetFromL(const TDesC16 &)
Sets the "From" header field.SetFromL(const TDesC8 &)
Sets the "From" header field.SetImMsgIdL(const TDesC8 &)
Sets the "MessageId" header field.SetInReplyToL(const TDesC8 &)
Sets the "In Reply To" header field.SetOverrideCharset(TUint)
Sets the character set to be used when calling ReDecodeL.SetReceiptAddressL(const TDesC16 &)
Sets the "Receipt" header field.SetReceiptAddressL(const TDesC8 &)
Sets the "Receipt" header field.SetRemoteSize(TUint)
SetReplyToL(const TDesC16 &)
Sets the "ReplyTo" header field.SetReplyToL(const TDesC8 &)
Sets the "ReplyTo" header field.SetResentFromL(const TDesC &)
SetResentMsgIdL(const TDesC8 &)
SetSubjectL(const TDesC16 &)
Sets the "Subject" header field.SetSubjectL(const TDesC8 &)
Sets the "Subject" header field.SetVersion(TUint16)
StoreL(CMsvStore &)const
Stores, but does not commit, settings to a specified message store.StoreWithoutCommitL(CMsvStore &)const
Stores, but does not commit, settings to a specified message store.Subject()const
Gets the "Subject" header field.TReplyTo
Flags used to determine where to obtain the ReplyTo address for the header field...ToRecipients()
Gets a list of "To" recipients.ToRecipients()const
Gets a const list of "To" recipients. Version()const
~CImHeader()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CImHeader* NewLC();
Allocates and creates a new CImHeader object, leaving the object on the cleanup stack.
|
IMPORT_C void InternalizeL(RMsvReadStream &aReadStream);
Internalises the settings from a specified stream.
|
IMPORT_C void ExternalizeL(RMsvWriteStream &aWriteStream) const;
Externalises the settings to a specified stream.
|
IMPORT_C void RestoreL(CMsvStore &aMessageStore);
Restores settings from a specified message store.
|
IMPORT_C void StoreL(CMsvStore &aMessageStore) const;
Stores, but does not commit, settings to a specified message store.
|
IMPORT_C void StoreWithoutCommitL(CMsvStore &aMessageStore) const;
Stores, but does not commit, settings to a specified message store.
|
IMPORT_C const TPtrC Subject() const;
Gets the "Subject" header field.
|
IMPORT_C void SetSubjectL(const TDesC8 &aSubject);
Sets the "Subject" header field.
|
IMPORT_C const TPtrC8 ImMsgId() const;
Gets the "MessageId" header field.
|
IMPORT_C void SetImMsgIdL(const TDesC8 &aImMsgIdL);
Sets the "MessageId" header field.
|
IMPORT_C const TPtrC From() const;
Gets the "From" header field.
This consists of an address and (possibly) an alias.
|
IMPORT_C void SetFromL(const TDesC8 &aFrom);
Sets the "From" header field.
|
IMPORT_C const TPtrC ReplyTo() const;
Gets the "ReplyTo" header field.
|
IMPORT_C void SetReplyToL(const TDesC8 &aReplyTo);
Sets the "ReplyTo" header field.
|
IMPORT_C const TPtrC ReceiptAddress() const;
Gets the "Receipt" header field.
|
IMPORT_C void SetReceiptAddressL(const TDesC8 &aReceiptAddress);
Sets the "Receipt" header field.
|
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 CImHeader::EncodingInfo()
.
|
CImHeader::SetCharset(const TUint)
Sets the character set to use when sending the message header.CImHeader::EncodingInfo()
Gets information relating to the encoding of header fields in received email.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 CImHeader::AddEncodingInfoL(TImHeaderEncodingInfo &)
.
|
CImHeader::Charset()const
Gets the character set to use when sending the message header.CImHeader::AddEncodingInfoL(TImHeaderEncodingInfo &)
Adds header field encoding information.IMPORT_C void SetFromL(const TDesC16 &aFrom);
Sets the "From" header field.
|
IMPORT_C void SetReplyToL(const TDesC16 &aReplyTo);
Sets the "ReplyTo" header field.
|
IMPORT_C void SetReceiptAddressL(const TDesC16 &aReceiptAddress);
Sets the "Receipt" header field.
|
IMPORT_C void SetSubjectL(const TDesC16 &aSubject);
Sets the "Subject" header field.
|
IMPORT_C TInt DataSize();
Gets the combined length of all the field values stored.
|
inline const CDesCArray& ToRecipients() const;
Gets a const list of "To" recipients.
|
inline const CDesCArray& CcRecipients() const;
Gets a const list of "Cc" recipients.
|
inline const CDesCArray& BccRecipients() const;
Gets a const list of "Bcc" recipients.
|
inline CDesCArray& ToRecipients();
Gets a list of "To" recipients.
|
inline CDesCArray& CcRecipients();
Gets a list of "Cc" recipients.
|
inline CDesCArray& BccRecipients();
Gets a list of "Bcc" recipients.
|
inline CArrayFix< TImHeaderEncodingInfo >& 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.
|
inline const CArrayFix< TImHeaderEncodingInfo >& EncodingInfo() const;
Gets const 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 void AddEncodingInfoL(TImHeaderEncodingInfo &aInfo);
Adds header field encoding information.
|
Interface status: | deprecated |
IMPORT_C const TPtrC8 ResentMsgId() const;
|
Interface status: | deprecated |
IMPORT_C void SetResentMsgIdL(const TDesC8 &);
|
Interface status: | deprecated |
IMPORT_C const TPtrC ResentFrom() const;
|
Interface status: | deprecated |
IMPORT_C void SetResentFromL(const TDesC &);
|
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(CImHeader &,TReplyTo,TDesC &)
.
|
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.
|
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.
|
|
IMPORT_C void CreateReceiptL(CImHeader &, TDesC &);
Populates a Receipt email header.
|
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.
|
TMsgOutboxBodyEncoding
Defines how emails will be encoded when they are sent.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
Defines how emails will be encoded when they are sent.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.
|
|
IMPORT_C TUint OverrideCharset() const;
Returns the character set to be used when calling ReDecodeL.
|
IMPORT_C void SetOverrideCharset(TUint aCharset);
Sets the character set to be used when calling ReDecodeL.
|
TReplyTo
Flags used to determine where to obtain the ReplyTo address for the header field of that name.
|