Location:
SMTCMTM.H
Link against: imcm.lib
class CSmtpClientMtm : public CBaseMtm;
SMTP client MTM interface.
Most of the functions in this class are implementations of the virtual functions defined by the base class CBaseMtm
.
MMsvEntryObserver
- Provides the interface for notification of events associated with an entry
CBase
- Base class for all classes to be instantiated on the heap
CBaseMtm
- Provides a high-level interface for accessing and manipulating a Message Server entry
CSmtpClientMtm
- SMTP client MTM interface
Defined in CSmtpClientMtm
:
AddAddresseeL()
, AddAddresseeL()
, AddAddresseeL()
, AddAddresseeL()
, AddAttachmentL()
, AddAttachmentL()
, AddEntryAsAttachmentL()
, AddLinkedAttachmentL()
, CancelAttachmentOperation()
, ChangeDefaultServiceL()
, ContextEntrySwitched()
, CreateAttachmentL()
, CreateMessageL()
, DefaultServiceL()
, Find()
, ForwardL()
, InvokeAsyncFunctionL()
, InvokeSyncFunctionL()
, LoadMessageL()
, QueryCapability()
, RemoveAddressee()
, RemoveDefaultServiceL()
, ReplyL()
, RestoreSettingsL()
, SaveMessageL()
, SetSettingsL()
, SetSubjectL()
, Settings()
, StoreSettingsL()
, SubjectL()
, ValidateMessage()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CBaseMtm
:
AddresseeList()
,
BioTypeChangedL()
,
Body()
,
Entry()
,
Filler1()
,
Filler2()
,
GetInterface()
,
HandleEntryEventL()
,
HasContext()
,
RestoreBodyL()
,
Session()
,
SetCurrentEntryL()
,
StoreBodyL()
,
SwitchCurrentEntryL()
,
Type()
,
iAddresseeList
,
iCharFormatLayer
,
iMsvEntry
,
iParaFormatLayer
Inherited from MMsvEntryObserver
:
EMsvChildrenChanged
,
EMsvChildrenInvalid
,
EMsvChildrenMissing
,
EMsvContextInvalid
,
EMsvDeletedChildren
,
EMsvEntryChanged
,
EMsvEntryDeleted
,
EMsvEntryMoved
,
EMsvNewChildren
,
TMsvEntryEvent
virtual void SaveMessageL();
Commits cached changes to the current message context to the storage controlled by the Message Server.
virtual void LoadMessageL();
Loads the cache with the message data for the current context.
IMPORT_C void StoreSettingsL();
Stores the current service settings from the object's cache in to the Central Repository for the current entry.
The current entry must be a service.
IMPORT_C void RestoreSettingsL();
Loads into the object's cache the service settings from the Central Repository for the current entry.
virtual CMsvOperation *ReplyL(TMsvId aReplyEntryId, TMsvPartList aPartlist, TRequestStatus &aCompletionStatus);
Creates a reply message to the current message context.
|
|
virtual CMsvOperation *ForwardL(TMsvId aForwardEntryId, TMsvPartList aPartList, TRequestStatus &aCompletionStatus);
Creates a forwarded message from the current message context.
|
|
virtual TMsvPartList ValidateMessage(TMsvPartList aPartList);
Validates the current message context.
The addresses for the message are checked to be well-formed email addresses.
|
|
virtual TMsvPartList Find(const TDesC &aTextToFind, TMsvPartList aPartList);
Searches the specified message part(s) for the plain-text version of the text to be found.
|
|
virtual void AddAddresseeL(const TDesC &aRealAddress);
Adds an addressee for the current context.
|
virtual void AddAddresseeL(const TDesC &aRealAddress, const TDesC &aAlias);
Adds an addressee with an alias for the current context.
|
virtual void AddAddresseeL(TMsvRecipientType aType, const TDesC &aRealAddress);
|
virtual void AddAddresseeL(TMsvRecipientType aType, const TDesC &aRealAddress, const TDesC &aAlias);
|
virtual void RemoveAddressee(TInt aIndex);
Removes an address from the current address list.
|
IMPORT_C void SetSettingsL(const CImSmtpSettings &aSettings);
Copies the specified service settings to the cached service settings.
|
IMPORT_C const CImSmtpSettings &Settings() const;
Gets the current cached service settings.
|
virtual IMPORT_C void SetSubjectL(const TDesC &aSubject);
Sets the message context's subject text.
|
virtual IMPORT_C const TPtrC SubjectL() const;
Gets the message context's subject text.
|
virtual TInt QueryCapability(TUid aCapability, TInt &aResponse);
Queries if the MTM supports a particular capability, specified by a UID.
|
|
virtual void InvokeSyncFunctionL(TInt aFunctionId, const CMsvEntrySelection &aSelection, TDes8 &aParameter);
Invokes a synchronous SMTP-specific operation.
|
virtual CMsvOperation *InvokeAsyncFunctionL(TInt aFunctionId, const CMsvEntrySelection &aSelection, TDes8 &aParameter, TRequestStatus
&aCompletionStatus);
Invokes asynchronous SMTP-specific operations.
|
|
|
virtual IMPORT_C void AddAttachmentL(const TDesC &aFilePath, const TDesC8 &aMimeType, TUint aCharset, TRequestStatus &aStatus);
|
virtual IMPORT_C void AddAttachmentL(RFile &aFile, const TDesC8 &aMimeType, TUint aCharset, TRequestStatus &aStatus);
|
virtual IMPORT_C void AddLinkedAttachmentL(const TDesC &aFilePath, const TDesC8 &aMimeType, TUint aCharset, TRequestStatus
&aStatus);
|
virtual IMPORT_C void AddEntryAsAttachmentL(TMsvId aAttachmentId, TRequestStatus &aStatus);
|
virtual IMPORT_C void CreateAttachmentL(const TDesC &aFileName, RFile &aAttachmentFile, const TDesC8 &aMimeType, TUint aCharset,
TRequestStatus &aStatus);
|
virtual IMPORT_C void CreateMessageL(TMsvId aServiceId);
Creates a new message entry as a child of the current context.
|
virtual IMPORT_C TMsvId DefaultServiceL() const;
Gets the default SMTP service.
KErrNotFound If default service setting does not exist.
|
|
virtual IMPORT_C void ChangeDefaultServiceL(const TMsvId &aService);
Sets the default SMTP service.
|
virtual IMPORT_C void CancelAttachmentOperation();
Cancels the current attachment operation.
protected: virtual void ContextEntrySwitched();
Called by the base class functions SwitchCurrentEntryL()
and SetCurrentEntryL()
when the context is changed to another entry.
Client applications do not use this function. It is relevant only to implementers of derived classes.
Requirements:
An implementation should clear:
1. address data stored in iAddresseeList
2. any caches of MTM-specific entry data relating to a previous context. For example, if the implementation has a private buffer storing a message subject, for access through Subject(), this buffer should be cleared.