Location:
mmsvattachmentmanagersync.h
class MMsvAttachmentManagerSync;
Defines the attachment management extensions interface.
This class is a pure virtual interface class that defines the APIs to be used for by MTMs and implementors of MMsvAttachmentManager
.
This API extends the MMsvAttachmentManager
with synchronous calls for deleting and creating attachments.
Defined in MMsvAttachmentManagerSync
:
CreateAttachmentL()
, ModifyAttachmentInfoL()
, RemoveAttachmentL()
, RenameAttachmentL()
virtual void CreateAttachmentL(const TDesC &aFileName, RFile &aAttachmentFile, CMsvAttachment *aAttachmentInfo)=0;
Creates a new empty attachment file.
The caller is returned an open writable file handle to an empty attachment file in the message store. The caller must pass in an uninitialised file handle. If the request is sucessful the file handle is open and must close by the caller once the data has been written to it.
|
|
virtual void RenameAttachmentL(TInt aIndex, const TDesC &aNewName)=0;
Renames the physical filename of an attachment.
|
|
virtual void RemoveAttachmentL(TInt aIndex)=0;
Removes the attachment from the message entry.
This changes the array index values of all the attachments after the removed one. Attachment files stored in the message store are deleted. Linked files and message entry attachments are not deleted, this is left to the caller to do if required.
|
|
virtual void ModifyAttachmentInfoL(CMsvAttachment *aAttachmentInfo)=0;
Modify existing attachment
|
|