emailservices/emailcommon/inc/CFSMailMessagePart.h
changeset 72 64e38f08e49c
parent 65 478bc57ad291
child 68 83cc6bae1de8
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   264      * The caller must close the file handle.
   264      * The caller must close the file handle.
   265      *
   265      *
   266      * @return content file handle 
   266      * @return content file handle 
   267      */
   267      */
   268      IMPORT_C RFile GetContentFileL();
   268      IMPORT_C RFile GetContentFileL();
   269        
   269         
       
   270     /**
       
   271      * copies contents of this message part to given file
       
   272      *
       
   273      * @param aContentLocation defines file location as 
       
   274      * a) directory, when plugin finds out corresponding file name
       
   275      *    related to this part id, in this case last character should
       
   276      *    be '/'
       
   277      * b) directory & filename, when both directory and file name
       
   278      *    are given by user
       
   279      * 
       
   280      */        
       
   281      IMPORT_C void CopyContentFileL(const TDesC& aContentLocation);
   270     
   282     
   271     /**
   283     /**
   272      * returns email part full content size (in bytes)
   284      * returns email part full content size (in bytes)
   273      *
   285      *
   274      */
   286      */
   291      * Sets email part currently fetched (local) content size (in bytes).
   303      * Sets email part currently fetched (local) content size (in bytes).
   292      * 
   304      * 
   293      * @param aContentSize content size to be set
   305      * @param aContentSize content size to be set
   294      */
   306      */
   295      IMPORT_C void SetFetchedContentSize(TUint aContentSize);
   307      IMPORT_C void SetFetchedContentSize(TUint aContentSize);
       
   308 
       
   309     /**
       
   310      * returns email part content current fetch state
       
   311      * Intended as utility function for UI.
       
   312      * If (0 == FetchedContentSize())
       
   313      *    return EFSNone;
       
   314      * else if (FetchedContentSize() < ContentSize()) then
       
   315      *    return EFSPartial
       
   316      * else
       
   317      *    return EFSFull
       
   318      *
       
   319      * @return email fetch state (EFSNone / EFSPartial / EFSFull)
       
   320      */
       
   321      IMPORT_C TFSPartFetchState FetchLoadState() const;
   296 
   322 
   297     /**
   323     /**
   298      * copies email part contents to buffer given by user
   324      * copies email part contents to buffer given by user
   299      *
   325      *
   300      * @param aBuffer buffer owned by user
   326      * @param aBuffer buffer owned by user