diff -r a8c646b56683 -r 084b5b1f02a7 emailservices/emailcommon/inc/CFSMailMessagePart.h --- a/emailservices/emailcommon/inc/CFSMailMessagePart.h Mon Aug 23 23:32:31 2010 +0300 +++ b/emailservices/emailcommon/inc/CFSMailMessagePart.h Fri Sep 03 14:07:42 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