CImEmailOperation Class Reference

class CImEmailOperation : public CMsvOperation

Provides simple email messages creation functions, including creation of new messages, replies, forwarded messages, and receipts.

Both plain-text and HTML messages, with or without attachments, can be created.

Inherits from

Public Member Functions
~CImEmailOperation ()
CImEmailOperation * CreateCopyL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateForwardAsAttachmentL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateForwardAsAttachmentL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt )
IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TDesC &, const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt )
IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt , TBool )
IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt )
IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt , TBool )
IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TDesC &, const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt )
IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt , TBool )
IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TDesC &, const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid )
IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt )
IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt , TBool )
void DoCancel ()
IMPORT_C const TDesC8 & FinalProgress ()
const TDesC8 & ProgressL ()
void RunL ()
Private Member Functions
CImEmailOperation ( TRequestStatus &, CMsvSession &, TMsvId , TMsvId , TMsvPartList , const TMsvEmailTypeList &, TUid , TInt , TBool )
void AddMessageAsAttachmentL ()
void AddMessageAttachmentInfoL ( TMsvId )
void AddVCardAttachmentL ()
void AppendHtmlAttachmentL ()
void AttachOriginalMessageToNewMessageL ()
void CheckForSignatureOrVCardL ()
void ClosePlainBodyTextArray ( TAny *)
void CompleteEmailOperationL ()
void ConstructL ( TMsvId , const TDesC &, TImEmailOperation )
void ConstructL ( TMsvId , TImEmailOperation )
void ConstructL ( TImEmailOperation )
void CreateAddressListStringL ( HBufC *&, const CDesCArray &)
void CreateAttachmentEntryL ()
void CreateDefaultAttachmentL ()
void CreateEntryDetails ( TMsvEmailEntry &)
void CreateHTMLEntryL ()
void CreateMultipartAlternativeFolderEntryL ()
void CreateMultipartMixedFolderEntryL ()
void CreateNewHeaderL ()
void CreateNewMessageL ( TMsvId )
void CreateTextEntryL ( TMsvId )
void CreateVCardAttachmentL ()
void ErrorRecovery ( TInt )
void GetBodyTextL ()
TPtrC GetDefaultAttachmentName ()
TInt GetPlainBodyTextSizeL ()
TBool NeedMultipartMixedFolder ()
void OpenAndReadResourceFileL ()
void PrepareToStoreHTMLEntryTextL ()
void ProcessStateL ()
void ReadDefaultHtmlAttachmentNameL ( TDes &)
TInt RemoveIncompleteAttachments ()
void RequestComplete ( TInt )
void ResetStoreL ()
void RestoreOriginalHeaderL ()
void RestoreSmtpSettingsL ()
void SelectAndProcessNextStateL ()
void SelectNextStateL ()
TMsvId ServiceId ()
void SetBodyHeaderFormatL ()
void SetSmtpServiceFromDefaultsL ()
void SetSmtpServiceFromOriginalMessageL ()
void StoreAttachmentL ()
void StoreBodyL ()
void StoreHTMLEntryTextL ()
void StorePlainBodyL ()
void StorePlainTextL ()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMsvOperation::CMsvOperation(CMsvSession &,TInt,TRequestStatus &)
CMsvOperation::Extension_(TUint,TAny *&,TAny *)
CMsvOperation::Id()const
CMsvOperation::Mtm()const
CMsvOperation::Service()const
CMsvOperation::SystemProgress(TMsvSystemProgress &)
CMsvOperation::~CMsvOperation()
Private Member Enumerations
enum TImBodyHeaderFormat { ENoToCcInfo  = 0, EToOnly , ECcOnly , EToAndCc }
enum TImEmailOperation {
ENew  = 0, EReply  = 1, EForward  = 2, EReceipt  = 3, EDeletingBadEmail  = 4, ECopy  = 5, EAttachOriginal  = 0x80, EForwardAsAttachment  = EForward | EAttachOriginal, EReplyAsAttachment  = EReply | EAttachOriginal
}
enum TImEmailOperationState {
ECreateNewHeader , EGetBodyText , EGetAttachmentList , EGetMessageDigest , ECreateNewMessageEntry , ECheckMultipartMixedFolderRequired , ECreateMultipartMixedFolderEntry , ECheckMultipartAlternativeFolderRequired , ECreateMultipartAlternativeFolderEntry , ECheckTextEntryRequired , ECreateTextEntry , EStoreBody , ECheckVCardRequired , ECreateVCardAttachment , EAddVCardAttachment , ECheckHTMLEntryRequired , ECreateHTMLEntry , EPrepareToStoreHTMLEntryText , EStoreHTMLEntryText , ECheckAttachOriginalMessageRequired , EAttachOriginalMessage , ECheckHTMLPageRequired , EFindHTMLPage , ECopyHTMLPartToAttachment , ECheckAttachmentsRequired , ECreateAttachmentEntry , EStoreAttachment , ECheckEmbeddedMessagesRequired , EAddEmbeddedMessagesAsAttachments , ECompleteEmailOperation , EFinished , ECreateDefaultHtmlAttachment , EStoreHTMLTextInEntry , EAddMessageAttachmentInfo
}
Inherited Enumerations
CActive:TPriority
Private Attributes
TMsvId iAttachedMessageId
TInt iAttachmentCount
TImAttachmentFile iAttachmentFile
RPointerArray < CMsvAttachment > iAttachmentInfoList
TBool iAttachmentMgrUsed
HBufC * iBodyHeader
HBufC * iBodyHeaderCcString
HBufC * iBodyHeaderDateTimeFormatString
TImBodyHeaderFormat iBodyHeaderFormat
HBufC * iBodyHeaderFormatString
HBufC * iBodyHeaderToString
CCharFormatLayer * iCharLayer
TBool iCreateHtmlMessage
TPckgBuf < TMsvId > iDataMember
HBufC * iDefaultVCardNameFormatString
TMsvId iDestinationId
CImEmailMessage * iEmailMessage
TInt iEmbeddedMessagesToProcess
RFile iFile
CFileMan * iFileMan
TFileName iFileName
TBool iFinishedConvertingHTML
HBufC * iFormatString
CImHtmlConverter * iHtmlConverter
TMsvId iHtmlId
TBool iHtmlNoTextAlt
TImMessageField iMessageField
TUid iMsgType
TMsvEmailTypeList iMsvEmailTypeList
CMsvEntry * iMsvEntry
CMsvOperation * iMsvOperation
TBool iMultipartAlternativeFolderCreated
TMsvId iMultipartAlternativeId
TBool iMultipartMixedFolderCreated
TMsvId iMultipartMixedId
TBool iNeedToAddVCardAttachment
CImHeader * iNewHeader
TMsvId iNewMessageId
TImEmailOperation iOperation
TBool iOrigMessageHtml
TMsvId iOrigMessageId
CImHeader * iOriginalHeader
TMsvId iPCMailServiceId
CParaFormatLayer * iParaLayer
TMsvPartList iPartList
TInt iRestoreErr
CRichText * iRichText
TInt iRichTextSize
CRichText * iSignatureText
TMsvId iSmtpServiceId
CImSmtpSettings * iSmtpSettings
TInt iState
CMsvStore * iStore
TMsvId iTextId
TInt iTotalAttachments
TBool iUsePlainTextStorage
HBufC * iUserEmailAddress
TInt iVCardAndHtmlSize
TMsvId iVcardId
CStreamStore * iVcardStore
TStreamId iVcardStoreId
Inherited Attributes
CActive::iStatus
CMsvOperation::iMsvSession
CMsvOperation::iMtm
CMsvOperation::iObserverRequestStatus
CMsvOperation::iService

Constructor & Destructor Documentation

CImEmailOperation(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt, TBool)

CImEmailOperation ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aDestination,
TMsvId aSmtpServiceId,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority,
TBool aUsePlainTextStorage
) [private]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aDestination
TMsvId aSmtpServiceId
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority
TBool aUsePlainTextStorage

~CImEmailOperation()

IMPORT_C ~CImEmailOperation ( )

Member Functions Documentation

AddMessageAsAttachmentL()

void AddMessageAsAttachmentL ( ) [private]

AddMessageAttachmentInfoL(TMsvId)

void AddMessageAttachmentInfoL ( TMsvId aAttachmentMessageId ) [private]

Parameters

TMsvId aAttachmentMessageId

AddVCardAttachmentL()

void AddVCardAttachmentL ( ) [private]

AppendHtmlAttachmentL()

void AppendHtmlAttachmentL ( ) [private]

AttachOriginalMessageToNewMessageL()

void AttachOriginalMessageToNewMessageL ( ) [private]

CheckForSignatureOrVCardL()

void CheckForSignatureOrVCardL ( ) [private]

ClosePlainBodyTextArray(TAny *)

void ClosePlainBodyTextArray ( TAny * aPtr ) [private, static]

Parameters

TAny * aPtr

CompleteEmailOperationL()

void CompleteEmailOperationL ( ) [private]

ConstructL(TMsvId, const TDesC &, TImEmailOperation)

void ConstructL ( TMsvId aMessageId,
const TDesC & aFormatString,
TImEmailOperation aOperation
) [private]

Parameters

TMsvId aMessageId
const TDesC & aFormatString
TImEmailOperation aOperation

ConstructL(TMsvId, TImEmailOperation)

void ConstructL ( TMsvId aMessageId,
TImEmailOperation aOperation
) [private]

Parameters

TMsvId aMessageId
TImEmailOperation aOperation

ConstructL(TImEmailOperation)

void ConstructL ( TImEmailOperation aOperation ) [private]

Parameters

TImEmailOperation aOperation

CreateAddressListStringL(HBufC *&, const CDesCArray &)

void CreateAddressListStringL ( HBufC *& aListBuffer,
const CDesCArray & aAddressArray
) [private]

Parameters

HBufC *& aListBuffer
const CDesCArray & aAddressArray

CreateAttachmentEntryL()

void CreateAttachmentEntryL ( ) [private]

CreateCopyL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

CImEmailOperation * CreateCopyL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateDefaultAttachmentL()

void CreateDefaultAttachmentL ( ) [private]

CreateEntryDetails(TMsvEmailEntry &)

void CreateEntryDetails ( TMsvEmailEntry & aMsvEmailEntry ) [private]

Parameters

TMsvEmailEntry & aMsvEmailEntry

CreateForwardAsAttachmentL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateForwardAsAttachmentL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateForwardAsAttachmentL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt)

IMPORT_C CImEmailOperation * CreateForwardAsAttachmentL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aSmtpServiceId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority = EPriorityStandard
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aSmtpServiceId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority = EPriorityStandard

CreateForwardL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TDesC &, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TDesC & aFormatString,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TDesC & aFormatString
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateForwardL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateForwardL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt)

IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvId aSmtpServiceId,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority = EPriorityStandard
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvId aSmtpServiceId
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority = EPriorityStandard

CreateForwardL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt, TBool)

IMPORT_C CImEmailOperation * CreateForwardL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvId aSmtpServiceId,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority,
TBool aUsePlainTextStorage
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvId aSmtpServiceId
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority
TBool aUsePlainTextStorage

CreateHTMLEntryL()

void CreateHTMLEntryL ( ) [private]

CreateMultipartAlternativeFolderEntryL()

void CreateMultipartAlternativeFolderEntryL ( ) [private]

CreateMultipartMixedFolderEntryL()

void CreateMultipartMixedFolderEntryL ( ) [private]

CreateNewHeaderL()

void CreateNewHeaderL ( ) [private]

CreateNewL(TRequestStatus &, CMsvSession &, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateNewL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt)

IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aDestination,
TMsvId aSmtpServiceId,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority = EPriorityStandard
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aDestination
TMsvId aSmtpServiceId
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority = EPriorityStandard

CreateNewL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt, TBool)

IMPORT_C CImEmailOperation * CreateNewL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aDestination,
TMsvId aSmtpServiceId,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority,
TBool aUsePlainTextStorage
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aDestination
TMsvId aSmtpServiceId
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority
TBool aUsePlainTextStorage

CreateNewMessageL(TMsvId)

void CreateNewMessageL ( TMsvId aDestinationId ) [private]

Parameters

TMsvId aDestinationId

CreateReceiptL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TDesC &, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TDesC & aFormatString,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TDesC & aFormatString
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateReceiptL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateReceiptL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt)

IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority

CreateReceiptL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt, TBool)

IMPORT_C CImEmailOperation * CreateReceiptL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority,
TBool aUsePlainTextStorage
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority
TBool aUsePlainTextStorage

CreateReplyL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TDesC &, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TDesC & aFormatString,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TDesC & aFormatString
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateReplyL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid)

IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType

CreateReplyL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt)

IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority

CreateReplyL(TRequestStatus &, CMsvSession &, TMsvId, TMsvId, TMsvPartList, const TMsvEmailTypeList &, TUid, TInt, TBool)

IMPORT_C CImEmailOperation * CreateReplyL ( TRequestStatus & aObserverRequestStatus,
CMsvSession & aMsvSession,
TMsvId aMessageId,
TMsvId aDestination,
TMsvPartList aPartList,
const TMsvEmailTypeList & aMsvEmailTypeList,
TUid aMsgType,
TInt aPriority,
TBool aUsePlainTextStorage
) [static]

Parameters

TRequestStatus & aObserverRequestStatus
CMsvSession & aMsvSession
TMsvId aMessageId
TMsvId aDestination
TMsvPartList aPartList
const TMsvEmailTypeList & aMsvEmailTypeList
TUid aMsgType
TInt aPriority
TBool aUsePlainTextStorage

CreateTextEntryL(TMsvId)

void CreateTextEntryL ( TMsvId aFolderId ) [private]

Parameters

TMsvId aFolderId

CreateVCardAttachmentL()

void CreateVCardAttachmentL ( ) [private]

DoCancel()

void DoCancel ( ) [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() .

CActive::Cancel

ErrorRecovery(TInt)

void ErrorRecovery ( TInt error ) [private]

Parameters

TInt error

FinalProgress()

IMPORT_C const TDesC8 & FinalProgress ( ) [virtual]

GetBodyTextL()

void GetBodyTextL ( ) [private]

GetDefaultAttachmentName()

TPtrC GetDefaultAttachmentName ( ) [private]

GetPlainBodyTextSizeL()

TInt GetPlainBodyTextSizeL ( ) [private]

NeedMultipartMixedFolder()

TBool NeedMultipartMixedFolder ( ) const [private]

OpenAndReadResourceFileL()

void OpenAndReadResourceFileL ( ) [private]

PrepareToStoreHTMLEntryTextL()

void PrepareToStoreHTMLEntryTextL ( ) [private]

ProcessStateL()

void ProcessStateL ( ) [private]

ProgressL()

const TDesC8 & ProgressL ( ) [virtual]

Gets information on the progress of the operation.

All operations on local entries share the same progress information format, which defined by TMsvLocalOperationProgress .

For MTM-specific operations, progress information can be extracted by calling CBaseUiMtm::GetProgress() or displayed by CBaseUiMtm::DisplayProgressSummary() on the appropriate User Interface MTM.

Requirements:

Derived classes should implement this function so that the client can check on the progress of the operation. The function should share an understanding of the format of the buffer with the implementations of CBaseUiMtm::GetProgress() and CBaseUiMtm::DisplayProgressSummary() in the User Interface MTM. The arguments of CBaseUiMtm::GetProgress() show some information that should be included where appropriate.

leave
KErrNotReady The operation has not yet been started: it has been queued for execution in the Message Server

ReadDefaultHtmlAttachmentNameL(TDes &)

void ReadDefaultHtmlAttachmentNameL ( TDes & aFileName ) [private]

Parameters

TDes & aFileName

RemoveIncompleteAttachments()

TInt RemoveIncompleteAttachments ( ) [private]

RequestComplete(TInt)

void RequestComplete ( TInt aError ) [private]

Parameters

TInt aError

ResetStoreL()

void ResetStoreL ( ) [private]

RestoreOriginalHeaderL()

void RestoreOriginalHeaderL ( ) [private]

RestoreSmtpSettingsL()

void RestoreSmtpSettingsL ( ) [private]

RunL()

void RunL ( ) [virtual]

Handles an active object's request completion event.

A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.

The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.

Before calling this active object's RunL() function, the active scheduler has:

1. decided that this is the highest priority active object with a completed request

2. marked this active object's request as complete (i.e. the request is no longer outstanding)

RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.

Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.

CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD

SelectAndProcessNextStateL()

void SelectAndProcessNextStateL ( ) [private]

SelectNextStateL()

void SelectNextStateL ( ) [private]

ServiceId()

TMsvId ServiceId ( ) [private]

SetBodyHeaderFormatL()

void SetBodyHeaderFormatL ( ) [private]

SetSmtpServiceFromDefaultsL()

void SetSmtpServiceFromDefaultsL ( ) [private]

SetSmtpServiceFromOriginalMessageL()

void SetSmtpServiceFromOriginalMessageL ( ) [private]

StoreAttachmentL()

void StoreAttachmentL ( ) [private]

StoreBodyL()

void StoreBodyL ( ) [private]

StoreHTMLEntryTextL()

void StoreHTMLEntryTextL ( ) [private]

StorePlainBodyL()

void StorePlainBodyL ( ) [private]

StorePlainTextL()

void StorePlainTextL ( ) [private]

Member Enumerations Documentation

Enum TImBodyHeaderFormat

Enumerators

ENoToCcInfo = 0
EToOnly
ECcOnly
EToAndCc

Enum TImEmailOperation

Enumerators

ENew = 0
EReply = 1
EForward = 2
EReceipt = 3
EDeletingBadEmail = 4
ECopy = 5
EAttachOriginal = 0x80
EForwardAsAttachment = EForward | EAttachOriginal
EReplyAsAttachment = EReply | EAttachOriginal

Enum TImEmailOperationState

Enumerators

ECreateNewHeader
EGetBodyText
EGetAttachmentList
EGetMessageDigest
ECreateNewMessageEntry
ECheckMultipartMixedFolderRequired
ECreateMultipartMixedFolderEntry
ECheckMultipartAlternativeFolderRequired
ECreateMultipartAlternativeFolderEntry
ECheckTextEntryRequired
ECreateTextEntry
EStoreBody
ECheckVCardRequired
ECreateVCardAttachment
EAddVCardAttachment
ECheckHTMLEntryRequired
ECreateHTMLEntry
EPrepareToStoreHTMLEntryText
EStoreHTMLEntryText
ECheckAttachOriginalMessageRequired
EAttachOriginalMessage
ECheckHTMLPageRequired
EFindHTMLPage
ECopyHTMLPartToAttachment
ECheckAttachmentsRequired
ECreateAttachmentEntry
EStoreAttachment
ECheckEmbeddedMessagesRequired
EAddEmbeddedMessagesAsAttachments
ECompleteEmailOperation
EFinished
ECreateDefaultHtmlAttachment
EStoreHTMLTextInEntry
EAddMessageAttachmentInfo

Member Data Documentation

TMsvId iAttachedMessageId

TMsvId iAttachedMessageId [private]

TInt iAttachmentCount

TInt iAttachmentCount [private]

TImAttachmentFile iAttachmentFile

TImAttachmentFile iAttachmentFile [private]

RPointerArray< CMsvAttachment > iAttachmentInfoList

RPointerArray < CMsvAttachment > iAttachmentInfoList [private]

TBool iAttachmentMgrUsed

TBool iAttachmentMgrUsed [private]

HBufC * iBodyHeader

HBufC * iBodyHeader [private]

HBufC * iBodyHeaderCcString

HBufC * iBodyHeaderCcString [private]

HBufC * iBodyHeaderDateTimeFormatString

HBufC * iBodyHeaderDateTimeFormatString [private]

TImBodyHeaderFormat iBodyHeaderFormat

TImBodyHeaderFormat iBodyHeaderFormat [private]

HBufC * iBodyHeaderFormatString

HBufC * iBodyHeaderFormatString [private]

HBufC * iBodyHeaderToString

HBufC * iBodyHeaderToString [private]

CCharFormatLayer * iCharLayer

CCharFormatLayer * iCharLayer [private]

TBool iCreateHtmlMessage

TBool iCreateHtmlMessage [private]

TPckgBuf< TMsvId > iDataMember

TPckgBuf < TMsvId > iDataMember [private]

HBufC * iDefaultVCardNameFormatString

HBufC * iDefaultVCardNameFormatString [private]

TMsvId iDestinationId

TMsvId iDestinationId [private]

CImEmailMessage * iEmailMessage

CImEmailMessage * iEmailMessage [private]

TInt iEmbeddedMessagesToProcess

TInt iEmbeddedMessagesToProcess [private]

RFile iFile

RFile iFile [private]

CFileMan * iFileMan

CFileMan * iFileMan [private]

TFileName iFileName

TFileName iFileName [private]

TBool iFinishedConvertingHTML

TBool iFinishedConvertingHTML [private]

HBufC * iFormatString

HBufC * iFormatString [private]

CImHtmlConverter * iHtmlConverter

CImHtmlConverter * iHtmlConverter [private]

TMsvId iHtmlId

TMsvId iHtmlId [private]

TBool iHtmlNoTextAlt

TBool iHtmlNoTextAlt [private]

TImMessageField iMessageField

TImMessageField iMessageField [private]

TUid iMsgType

TUid iMsgType [private]

TMsvEmailTypeList iMsvEmailTypeList

TMsvEmailTypeList iMsvEmailTypeList [private]

CMsvEntry * iMsvEntry

CMsvEntry * iMsvEntry [private]

CMsvOperation * iMsvOperation

CMsvOperation * iMsvOperation [private]

TBool iMultipartAlternativeFolderCreated

TBool iMultipartAlternativeFolderCreated [private]

TMsvId iMultipartAlternativeId

TMsvId iMultipartAlternativeId [private]

TBool iMultipartMixedFolderCreated

TBool iMultipartMixedFolderCreated [private]

TMsvId iMultipartMixedId

TMsvId iMultipartMixedId [private]

TBool iNeedToAddVCardAttachment

TBool iNeedToAddVCardAttachment [private]

CImHeader * iNewHeader

CImHeader * iNewHeader [private]

TMsvId iNewMessageId

TMsvId iNewMessageId [private]

TImEmailOperation iOperation

TImEmailOperation iOperation [private]

TBool iOrigMessageHtml

TBool iOrigMessageHtml [private]

TMsvId iOrigMessageId

TMsvId iOrigMessageId [private]

CImHeader * iOriginalHeader

CImHeader * iOriginalHeader [private]

TMsvId iPCMailServiceId

TMsvId iPCMailServiceId [private]

CParaFormatLayer * iParaLayer

CParaFormatLayer * iParaLayer [private]

TMsvPartList iPartList

TMsvPartList iPartList [private]

TInt iRestoreErr

TInt iRestoreErr [private]

CRichText * iRichText

CRichText * iRichText [private]

TInt iRichTextSize

TInt iRichTextSize [private]

CRichText * iSignatureText

CRichText * iSignatureText [private]

TMsvId iSmtpServiceId

TMsvId iSmtpServiceId [private]

CImSmtpSettings * iSmtpSettings

CImSmtpSettings * iSmtpSettings [private]

TInt iState

TInt iState [private]

CMsvStore * iStore

CMsvStore * iStore [private]

TMsvId iTextId

TMsvId iTextId [private]

TInt iTotalAttachments

TInt iTotalAttachments [private]

TBool iUsePlainTextStorage

TBool iUsePlainTextStorage [private]

Indicates if the body text entry is plain text

HBufC * iUserEmailAddress

HBufC * iUserEmailAddress [private]

TInt iVCardAndHtmlSize

TInt iVCardAndHtmlSize [private]

TMsvId iVcardId

TMsvId iVcardId [private]

CStreamStore * iVcardStore

CStreamStore * iVcardStore [private]

TStreamId iVcardStoreId

TStreamId iVcardStoreId [private]