emailservices/emailcommon/inc/CFSMailMessagePart.h
changeset 72 64e38f08e49c
parent 65 478bc57ad291
child 68 83cc6bae1de8
--- a/emailservices/emailcommon/inc/CFSMailMessagePart.h	Thu Sep 02 20:15:00 2010 +0300
+++ b/emailservices/emailcommon/inc/CFSMailMessagePart.h	Fri Sep 17 08:27:21 2010 +0300
@@ -266,7 +266,19 @@
      * @return content file handle 
      */
      IMPORT_C RFile GetContentFileL();
-       
+        
+    /**
+     * copies contents of this message part to given file
+     *
+     * @param aContentLocation defines file location as 
+     * a) directory, when plugin finds out corresponding file name
+     *    related to this part id, in this case last character should
+     *    be '/'
+     * b) directory & filename, when both directory and file name
+     *    are given by user
+     * 
+     */        
+     IMPORT_C void CopyContentFileL(const TDesC& aContentLocation);
     
     /**
      * returns email part full content size (in bytes)
@@ -295,6 +307,20 @@
      IMPORT_C void SetFetchedContentSize(TUint aContentSize);
 
     /**
+     * returns email part content current fetch state
+     * Intended as utility function for UI.
+     * If (0 == FetchedContentSize())
+     *    return EFSNone;
+     * else if (FetchedContentSize() < ContentSize()) then
+     *    return EFSPartial
+     * else
+     *    return EFSFull
+     *
+     * @return email fetch state (EFSNone / EFSPartial / EFSFull)
+     */
+     IMPORT_C TFSPartFetchState FetchLoadState() const;
+
+    /**
      * copies email part contents to buffer given by user
      *
      * @param aBuffer buffer owned by user