class CImEmailMessage : public CMsgActive |
This class can be used to manipulate new emails that have been created using CImEmailOperation when composing a message.
Use an instance of this class to add attachments, MHTML parts, body text, and existing messages to a new message before it is to be sent.
This class can also be used to retrieve the body text, list of attachments, and embedded messages from emails that have been downloaded and stored within the message store.
If the store_8bit_body_text flag in imcm.rss is enabled, an instance of this class can be used to retrieve the original body text character set for a particular message. It can also be used to override the original body text character set so it will be decoded in a new character set next time it is viewed.
Private Member Functions | |
---|---|
CImEmailMessage(CMsvEntry &) | |
void | AppendAttachmentL() |
void | AppendAttachmentNameL() |
void | AssembleBodyTextL() |
void | AttachmentInfoL() |
void | ChangeMessageContextL() |
void | CheckAndInitialiseL(TMsvId) |
void | CompareChildrenAndPopulateSelL() |
void | ConstructL() |
void | DoCancel() |
void | DoComplete(TInt &) |
void | DoGetBodyTextEntryIdL(TMsvId, TImEmailEntryType) |
void | DoRunL() |
void | DoStateL() |
CImMimeHeader * | FindAttachmentMimeHeaderL() |
TInt | FindFilename(const CImMimeHeader &, TPtrC8 &) |
void | FindFilenameDecodeL(const CImMimeHeader &, TFileName &, TUint) |
void | FindFirstBodyTextPartL(TMsvId, TBool &) |
TMsvEntry | FindIdEntryL(TMsvId) |
void | GetAttachmentsForRelatedFolderL() |
TBool | GetBodyTextCharacterSetL() |
TUint | GetOverrideCharacterSetL() |
void | GetTextForAlternateFolderL() |
void | GetTextForRelatedFolderL() |
TBool | HandleDifferentFolderTypesL() |
TBool | MessageDigestEntry() |
void | Reset() |
void | SetBodyTextCharacterSetL(TMsvId, TUint8) |
void | Start(TRequestStatus &) |
void | StartL() |
Public Member Enumerations | |
---|---|
enum | TImAttachmentType { EAllAttachments = 0, EVCards, EVCalendars, EVEntries, EEncrypted, ESigned, ESecure, EICalendars } |
enum | TImEmailEntryType { EThisMessageOnly, EThisMessageAndEmbeddedMessages } |
Private Member Enumerations | |
---|---|
enum | TImAttachmentStates { ENoAttachment = 0, EAddAttachment, EDeleteAttachment, ECreateAttachment } |
enum | TImEmailMessageStates { EIdle = 0, ETextForThisMsg, ETextForMsgDigest, ETextEntryIdForThisMsg, ETextEntryIdMsgDigest, ETextForThisMsgGetCharacterSet, EAttachmentsForThisMsg, EAttachmentsForMsgDigest, EMsgDigestEntries, EResolveURI, EStoreMessagePart, ERemoveMessagePart, EFinished } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
CImAttachmentManager * | iAttachmentManager |
CDesCArray * | iAttachmentNameList |
TInt | iAttachmentState |
TImAttachmentType | iAttachmentType |
CCharFormatLayer * | iCharLayer |
TUint | iCharacterSetId |
CMsvEntry & | iClientEntry |
CMsvEntrySelection * | iCompleteSel |
TMsvId | iEmailEntryId |
TMsvEmailEntry | iEntry |
TImEmailEntryType | iEntryType |
RFs | iFs |
TBool | iIsAMHTMLmessage |
CParaFormatLayer * | iParaLayer |
TMsvId | iParentMsgId |
TPckgBuf< TMsvId > | iProgress |
CImRemoveMessagePart * | iRemoveMessagePart |
CMsvEntrySelection * | iResultSel |
CRichText * | iRichText |
TImEmailMessageStates | iState |
CMsvStore * | iStore |
CImStoreMessagePart * | iStoreMessagePart |
TBool | iUriFileFound |
CImMhtmlUriResolver * | iUriResolver |
Inherited Attributes | |
---|---|
CActive::iStatus |
CImEmailMessage | ( | CMsvEntry & | aEntry | ) | [private] |
CMsvEntry & aEntry |
void | AddAttachmentL | ( | const TDesC & | aFilePath, |
CMsvAttachment * | aAttachmentInfo, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC & aFilePath | |
CMsvAttachment * aAttachmentInfo | |
TRequestStatus & aStatus |
void | AddAttachmentL | ( | RFile & | aFileHandle, |
CMsvAttachment * | aAttachmentInfo, | |||
TRequestStatus & | aStatus | |||
) |
RFile & aFileHandle | |
CMsvAttachment * aAttachmentInfo | |
TRequestStatus & aStatus |
void | AddEntryAsAttachmentL | ( | TMsvId | aAttachmentEntryId, |
CMsvAttachment * | aAttachmentInfo, | |||
TRequestStatus & | aStatus | |||
) |
TMsvId aAttachmentEntryId | |
CMsvAttachment * aAttachmentInfo | |
TRequestStatus & aStatus |
void | AddLinkedAttachmentL | ( | const TDesC & | aFilePath, |
CMsvAttachment * | aAttachmentInfo, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC & aFilePath | |
CMsvAttachment * aAttachmentInfo | |
TRequestStatus & aStatus |
IMPORT_C void | AddRelatedPartL | ( | TMsvId | aMessageId, |
const TDesC & | aAttachmentFullName, | |||
TRequestStatus & | aStatus, | |||
TMsvId | aRelatedPartId, | |||
const TDesC8 & | aContentId | |||
) |
TMsvId aMessageId | |
const TDesC & aAttachmentFullName | |
TRequestStatus & aStatus | |
TMsvId aRelatedPartId | |
const TDesC8 & aContentId |
void | CheckAndInitialiseL | ( | TMsvId | aMessageId | ) | [private] |
TMsvId aMessageId |
void | CheckEntryAndResetRemoveMessageL | ( | TMsvId | aMessageId | ) |
TMsvId aMessageId |
void | CheckEntryAndResetStoreMessageL | ( | TMsvId | aMessageId | ) |
TMsvId aMessageId |
CImMimeHeader * | ConvertToImMimeHeadersL | ( | CMsvMimeHeaders * | aMimeHeaders | ) |
CMsvMimeHeaders * aMimeHeaders |
CMsvMimeHeaders * | ConvertToMsvMimeHeadersL | ( | CImMimeHeader * | aMimeHeader | ) |
CImMimeHeader * aMimeHeader |
void | CreateAttachmentL | ( | const TDesC & | aFileName, |
RFile & | aAttachmentFile, | |||
CMsvAttachment * | aAttachmentInfo, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC & aFileName | |
RFile & aAttachmentFile | |
CMsvAttachment * aAttachmentInfo | |
TRequestStatus & aStatus |
void | DoCancel | ( | ) | [private, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
void | DoGetAttachmentsListL | ( | TMsvId | aMessageId, |
TImAttachmentType | aAttachmentType, | |||
TImEmailEntryType | aEntryType | |||
) |
TMsvId aMessageId | |
TImAttachmentType aAttachmentType | |
TImEmailEntryType aEntryType |
void | DoGetBodyTextEntryIdL | ( | TMsvId | aMessageId, |
TImEmailEntryType | aEntryType | |||
) | [private] |
TMsvId aMessageId | |
TImEmailEntryType aEntryType |
void | DoGetBodyTextInitL | ( | TMsvId | aMessageId, |
TImEmailEntryType | aEntryType, | |||
CRichText & | aRichText, | |||
CParaFormatLayer & | aParaLayer, | |||
CCharFormatLayer & | aCharLayer | |||
) |
TMsvId aMessageId | |
TImEmailEntryType aEntryType | |
CRichText & aRichText | |
CParaFormatLayer & aParaLayer | |
CCharFormatLayer & aCharLayer |
void | DoSetActive | ( | TRequestStatus & | aStatus | ) |
TRequestStatus & aStatus |
TInt | FindFilename | ( | const CImMimeHeader & | aMimeInfo, |
TPtrC8 & | aFilename | |||
) | [private] |
const CImMimeHeader & aMimeInfo | |
TPtrC8 & aFilename |
void | FindFilenameDecodeL | ( | const CImMimeHeader & | aMimeInfo, |
TFileName & | aFileName, | |||
TUint | aCharset | |||
) | [private] |
const CImMimeHeader & aMimeInfo | |
TFileName & aFileName | |
TUint aCharset |
void | FindFirstBodyTextPartL | ( | TMsvId | aEntryId, |
TBool & | found | |||
) | [private] |
IMPORT_C void | FindFirstHTMLPageFileHandleL | ( | TMsvId | aMessageId, |
TRequestStatus & | aStatus | |||
) |
TMsvId aMessageId | |
TRequestStatus & aStatus |
IMPORT_C void | FindFirstHTMLPageL | ( | TMsvId | aMessageId, |
TRequestStatus & | aStatus | |||
) |
TMsvId aMessageId | |
TRequestStatus & aStatus |
IMPORT_C void | FindUniversalResourceIdentifierFileHandleL | ( | TMsvId | aMessageId, |
const TDesC & | aBase, | |||
const TDesC & | aURI, | |||
TRequestStatus & | aStatus | |||
) |
TMsvId aMessageId | |
const TDesC & aBase | |
const TDesC & aURI | |
TRequestStatus & aStatus |
IMPORT_C void | FindUniversalResourceIdentifierL | ( | TMsvId | aMessageId, |
const TDesC & | aBase, | |||
const TDesC & | aURI, | |||
TRequestStatus & | aStatus | |||
) | [virtual] |
TMsvId aMessageId | |
const TDesC & aBase | |
const TDesC & aURI | |
TRequestStatus & aStatus |
IMPORT_C void | GetAttachmentsListL | ( | TRequestStatus & | aStatus, |
TMsvId | aMessageId, | |||
TImAttachmentType | aAttachmentType, | |||
TImEmailEntryType | aEntryType | |||
) |
TRequestStatus & aStatus | |
TMsvId aMessageId | |
TImAttachmentType aAttachmentType | |
TImEmailEntryType aEntryType |
IMPORT_C void | GetAttachmentsListL | ( | TMsvId | aMessageId, |
TImAttachmentType | aAttachmentType, | |||
TImEmailEntryType | aEntryType | |||
) |
TMsvId aMessageId | |
TImAttachmentType aAttachmentType | |
TImEmailEntryType aEntryType |
IMPORT_C void | GetBodyTextEntryIdL | ( | TRequestStatus & | aStatus, |
TMsvId | aMessageId, | |||
TImEmailEntryType | aEntryType | |||
) |
TRequestStatus & aStatus | |
TMsvId aMessageId | |
TImEmailEntryType aEntryType |
IMPORT_C void | GetBodyTextEntryIdL | ( | TMsvId | aMessageId, |
TImEmailEntryType | aEntryType | |||
) |
TMsvId aMessageId | |
TImEmailEntryType aEntryType |
IMPORT_C void | GetBodyTextL | ( | TRequestStatus & | aStatus, |
TMsvId | aMessageId, | |||
TImEmailEntryType | aEntryType, | |||
CRichText & | aRichText, | |||
CParaFormatLayer & | aParaLayer, | |||
CCharFormatLayer & | aCharLayer | |||
) |
TRequestStatus & aStatus | |
TMsvId aMessageId | |
TImEmailEntryType aEntryType | |
CRichText & aRichText | |
CParaFormatLayer & aParaLayer | |
CCharFormatLayer & aCharLayer |
IMPORT_C void | GetBodyTextL | ( | TMsvId | aMessageId, |
TImEmailEntryType | aEntryType, | |||
CRichText & | aRichText, | |||
CParaFormatLayer & | aParaLayer, | |||
CCharFormatLayer & | aCharLayer | |||
) |
TMsvId aMessageId | |
TImEmailEntryType aEntryType | |
CRichText & aRichText | |
CParaFormatLayer & aParaLayer | |
CCharFormatLayer & aCharLayer |
IMPORT_C void | GetCharacterSetL | ( | TMsvId | aMessageId, |
TUint & | aCharacterSetId, | |||
TBool & | aOverride | |||
) |
IMPORT_C void | GetMessageDigestEntriesL | ( | TRequestStatus & | aStatus, |
TMsvId | aMessageId | |||
) |
TRequestStatus & aStatus | |
TMsvId aMessageId |
IMPORT_C TInt | GetUniversalResourceIdentifierFileHandle | ( | TMsvId & | aLinkedEntryId, |
RFile & | aFile | |||
) | const [virtual] |
IMPORT_C HBufC * | GetUniversalResourceIdentifierL | ( | TMsvId & | aLinkedEntryId, |
TBool & | aFileFound | |||
) | const [virtual] |
IMPORT_C CImEmailMessage * | NewL | ( | CMsvEntry & | aEntry | ) | [static] |
CMsvEntry & aEntry |
IMPORT_C CImEmailMessage * | NewLC | ( | CMsvEntry & | aEntry | ) | [static] |
CMsvEntry & aEntry |
IMPORT_C CImPlainBodyText * | OpenPlainBodyTextForReadL | ( | TImEmailEntryType | aEntryType, |
TInt | aChunkLength | |||
) |
TImEmailEntryType aEntryType | |
TInt aChunkLength |
void | RemoveAttachedMessageL | ( | TMsvAttachmentId | aAttachmentId, |
TRequestStatus & | aStatus | |||
) |
TMsvAttachmentId aAttachmentId | |
TRequestStatus & aStatus |
void | RemoveAttachmentL | ( | TMsvAttachmentId | aAttachmentId, |
TRequestStatus & | aStatus | |||
) |
TMsvAttachmentId aAttachmentId | |
TRequestStatus & aStatus |
void | SetBodyTextCharacterSetL | ( | TMsvId | aEntryId, |
TUint8 | aNewCharacterSetId | |||
) | [private] |
IMPORT_C void | SetCharacterSetL | ( | TMsvId | aMessageId, |
TUint | aCharacterSetId | |||
) |
void | Start | ( | TRequestStatus & | aStatus | ) | [private] |
TRequestStatus & aStatus |
IMPORT_C void | StoreBodyTextL | ( | TMsvId | aMessageId, |
CRichText & | aRichText, | |||
TRequestStatus & | aStatus | |||
) |
TMsvId aMessageId | |
CRichText & aRichText | |
TRequestStatus & aStatus |
IMPORT_C void | StoreBodyTextL | ( | TMsvId | aMessageId, |
CRichText & | aRichText, | |||
TRequestStatus & | aStatus, | |||
TBool | aUsePlainTextStorage | |||
) |
TMsvId aMessageId | |
CRichText & aRichText | |
TRequestStatus & aStatus | |
TBool aUsePlainTextStorage |
IMPORT_C void | StoreBodyTextWithMimeHeaderL | ( | TMsvId | aMessageId, |
CRichText & | aRichText, | |||
const CImMimeHeader & | aMimeHeader, | |||
TRequestStatus & | aStatus | |||
) |
TMsvId aMessageId | |
CRichText & aRichText | |
const CImMimeHeader & aMimeHeader | |
TRequestStatus & aStatus |
ENoAttachment = 0 | |
EAddAttachment | |
EDeleteAttachment | |
ECreateAttachment |
Flags to specify types of attachment.
EAllAttachments = 0 |
All attachments. |
EVCards |
VCards. |
EVCalendars |
VCalendars. |
EVEntries |
VCards, VCalendars and ICalendars. |
EEncrypted |
Encrypted. |
ESigned |
Signed. |
ESecure |
Secure. |
EICalendars |
ICalendars. |
Flags that specify to process on any messages embedded in this message.
EThisMessageOnly |
Do not process embedded messages. |
EThisMessageAndEmbeddedMessages |
Process embedded messages. |
EIdle = 0 | |
ETextForThisMsg | |
ETextForMsgDigest | |
ETextEntryIdForThisMsg | |
ETextEntryIdMsgDigest | |
ETextForThisMsgGetCharacterSet | |
EAttachmentsForThisMsg | |
EAttachmentsForMsgDigest | |
EMsgDigestEntries | |
EResolveURI | |
EStoreMessagePart | |
ERemoveMessagePart | |
EFinished |