emailservices/emailcommon/src/CFSMailMessagePart.cpp
changeset 66 084b5b1f02a7
parent 62 a8c646b56683
child 68 83cc6bae1de8
--- a/emailservices/emailcommon/src/CFSMailMessagePart.cpp	Mon Aug 23 23:32:31 2010 +0300
+++ b/emailservices/emailcommon/src/CFSMailMessagePart.cpp	Fri Sep 03 14:07:42 2010 +0300
@@ -517,6 +517,19 @@
 	return iFile;
 	}
 
+// -----------------------------------------------------------------------------
+// CFSMailMessagePart::CopyContentFileL
+// -----------------------------------------------------------------------------
+EXPORT_C void CFSMailMessagePart::CopyContentFileL( const TDesC& aFilePath )
+	{
+    NM_FUNCTION;
+    
+	if(CFSMailPlugin* plugin = iRequestHandler->GetPluginByUid(GetPartId()))
+		{
+		plugin->CopyMessagePartFileL( GetMailBoxId(), GetFolderId(),
+			GetMessageId(), GetPartId(), aFilePath);		
+		}
+	}
 
 // -----------------------------------------------------------------------------
 // CFSMailMessagePart::GetContentToBufferL
@@ -1186,7 +1199,37 @@
 //</qmail>
 	}
 
-
+// -----------------------------------------------------------------------------
+// CFSMailMessagePart::FetchLoadState
+// -----------------------------------------------------------------------------
+EXPORT_C TFSPartFetchState CFSMailMessagePart::FetchLoadState() const
+	{
+    NM_FUNCTION;
+    
+//<qmail>
+	 if(iMessagePartsStatus != EFSDefault)
+		{
+		return iMessagePartsStatus;
+		}
+     else if (iNmPrivateMessagePart->mSize == 0)
+     	{
+     	return EFSFull;     	
+     	}
+     else if(iNmPrivateMessagePart->mFetchedSize == 0)
+     	{
+     	return EFSNone;
+     	}
+     else if (iNmPrivateMessagePart->mFetchedSize < iNmPrivateMessagePart->mSize)
+     	{
+     	return EFSPartial;
+     	}
+     else
+     	{
+     	return EFSFull;
+     	}
+//</qmail>
+	}
+	
 // -----------------------------------------------------------------------------
 // CFSMailMessagePart::FetchMessagePartL
 // -----------------------------------------------------------------------------