Location:
MIUTMSG.H
Link against: imcm.lib
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.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CMsvOperation
- Defines an interface for use by objects which control asynchronous commands in the messaging system
CImEmailOperation
- Provides simple email messages creation functions, including creation of new messages, replies, forwarded messages, and
receipts
Defined in CImEmailOperation
:
CreateForwardAsAttachmentL()
, CreateForwardAsAttachmentL()
, CreateForwardL()
, CreateForwardL()
, CreateForwardL()
, CreateNewL()
, CreateNewL()
, CreateReceiptL()
, CreateReceiptL()
, CreateReceiptL()
, CreateReplyL()
, CreateReplyL()
, CreateReplyL()
, DoCancel()
, FinalProgress()
, ProgressL()
, RunL()
, ~CImEmailOperation()
Inherited from CActive
:
Cancel()
,
Deque()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
IsActive()
,
IsAdded()
,
Priority()
,
RunError()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
Delete()
,
operator new()
Inherited from CMsvOperation
:
Extension_()
,
Id()
,
Mtm()
,
Service()
,
SystemProgress()
,
iMsvSession
,
iMtm
,
iObserverRequestStatus
,
iService
static IMPORT_C CImEmailOperation *CreateNewL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId aDestination,
TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType);
Creates a new email message.
|
|
static IMPORT_C CImEmailOperation *CreateNewL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId aDestination,
TMsvId aSmtpServiceId, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType, TInt aPriority=EPriorityStandard);
Creates a new email message with a specified priority and SMTP service.
|
|
static IMPORT_C CImEmailOperation *CreateReplyL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId aMessageId,
TMsvId aDestination, TMsvPartList aPartList, const TDesC &aFormatString, const TMsvEmailTypeList &aMsvEmailTypeList, TUid
aMsgType);
Creates a reply email message, overriding the default subject format string.
The aFormatString parameter allows you to override the default string used in the subject field of the new message (the default is the localised string STRING_reply_formatting_string1 defined in the source file imcm.rls).
Note that if you reply to an HTML message that does not contain a text/plain alternative to the HTML, then the HTML part is copied as an attachment (still an HTML entry) into the new message even if aPartList does not specify KMsvMessagePartAttachments. This occurs because there is no other way of reading the original message unless the user switches between the editor/viewer and the application.
|
|
static IMPORT_C CImEmailOperation *CreateReplyL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId aMessageId,
TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType);
Creates a reply email message.
For details of how replies to HTML messages are handled, see the description above for the first overload of this function.
|
|
static IMPORT_C CImEmailOperation *CreateReplyL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId aMessageId,
TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType, TInt aPriority);
Creates a reply email message, specifying a message priority.
For details of how replies to HTML messages are handled, see the description above for the first overload of this function.
|
|
static IMPORT_C CImEmailOperation *CreateForwardL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TDesC &aFormatString, const TMsvEmailTypeList &aMsvEmailTypeList,
TUid aMsgType);
Creates a forwarded email message, overriding the default subject format string.
The aFormatString parameter allows you to override the default string used in the subject field of the new message (the default is the localised string STRING_forward_formatting_string1 defined in the source file imcm.rls).
Note that if you forward an HTML message that does not contain a text/plain alternative to the HTML, then the HTML part is copied as an attachment (still an HTML entry) into the new message even if aPartList does not specify KMsvMessagePartAttachments. This occurs because there is no other way of reading the original message unless the user switches between the editor/viewer and the application.
|
|
static IMPORT_C CImEmailOperation *CreateForwardL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType);
Creates a forwarded email message.
For details of how forwarding HTML messages is handled, see the description above for the first overload of this function.
|
|
static IMPORT_C CImEmailOperation *CreateForwardL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvId aSmtpServiceId, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList,
TUid aMsgType, TInt aPriority=EPriorityStandard);
Creates a forwarded email message, specifying the message priority and SMTP service with which to send the message.
For details of how forwarding HTML messages is handled, see the description above for the first overload of this function.
|
|
static IMPORT_C CImEmailOperation *CreateForwardAsAttachmentL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession,
TMsvId aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType);
Creates a forwarded email message.
|
|
static IMPORT_C CImEmailOperation *CreateForwardAsAttachmentL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession,
TMsvId aMessageId, TMsvId aSmtpServiceId, TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList,
TUid aMsgType, TInt aPriority=EPriorityStandard);
Creates a forwarded email message, specifying the message priority and SMTP service with which to send the message.
|
|
static IMPORT_C CImEmailOperation *CreateReceiptL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TDesC &aFormatString, const TMsvEmailTypeList &aMsvEmailTypeList,
TUid aMsgType);
Creates a email receipt message, overriding the default subject format string.
The aFormatString parameter allows you to override the default string used in the subject field of the new message (the default is the localised string STRING_receipt_formatting_string1 defined in the source file imcm.rls).
|
|
static IMPORT_C CImEmailOperation *CreateReceiptL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType);
Creates a email receipt message.
|
|
static IMPORT_C CImEmailOperation *CreateReceiptL(TRequestStatus &aObserverRequestStatus, CMsvSession &aMsvSession, TMsvId
aMessageId, TMsvId aDestination, TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, TUid aMsgType, TInt aPriority);
Creates a email receipt message, specifying the message priority.
|
|
virtual IMPORT_C const TDesC8 &FinalProgress();
Gets progress information for a completed operation.
The function returns (in packaged form):
for a successfully completed operation, the Id of the new message
if there was an error/problem while creating the message, a null Id (KMsvNullIndexEntryId). The new message will also be deleted.
|
virtual void DoCancel();
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()
.
virtual void RunL();
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.
virtual const TDesC8 &ProgressL();
Gets progress information.
While the operation is in progress, a null Id (KMsvNullIndexEntryId) is returned. For a completed operation, values are as
described for FinalProgress()
.
|