equal
deleted
inserted
replaced
515 } |
515 } |
516 |
516 |
517 return iFile; |
517 return iFile; |
518 } |
518 } |
519 |
519 |
|
520 // ----------------------------------------------------------------------------- |
|
521 // CFSMailMessagePart::CopyContentFileL |
|
522 // ----------------------------------------------------------------------------- |
|
523 EXPORT_C void CFSMailMessagePart::CopyContentFileL( const TDesC& aFilePath ) |
|
524 { |
|
525 NM_FUNCTION; |
|
526 |
|
527 if(CFSMailPlugin* plugin = iRequestHandler->GetPluginByUid(GetPartId())) |
|
528 { |
|
529 plugin->CopyMessagePartFileL( GetMailBoxId(), GetFolderId(), |
|
530 GetMessageId(), GetPartId(), aFilePath); |
|
531 } |
|
532 } |
520 |
533 |
521 // ----------------------------------------------------------------------------- |
534 // ----------------------------------------------------------------------------- |
522 // CFSMailMessagePart::GetContentToBufferL |
535 // CFSMailMessagePart::GetContentToBufferL |
523 // ----------------------------------------------------------------------------- |
536 // ----------------------------------------------------------------------------- |
524 EXPORT_C void CFSMailMessagePart::GetContentToBufferL(TDes16& aBuffer, TUint aStartOffset) |
537 EXPORT_C void CFSMailMessagePart::GetContentToBufferL(TDes16& aBuffer, TUint aStartOffset) |
1184 //<qmail> |
1197 //<qmail> |
1185 iNmPrivateMessagePart->mFetchedSize = quint32(aContentSize); |
1198 iNmPrivateMessagePart->mFetchedSize = quint32(aContentSize); |
1186 //</qmail> |
1199 //</qmail> |
1187 } |
1200 } |
1188 |
1201 |
1189 |
1202 // ----------------------------------------------------------------------------- |
|
1203 // CFSMailMessagePart::FetchLoadState |
|
1204 // ----------------------------------------------------------------------------- |
|
1205 EXPORT_C TFSPartFetchState CFSMailMessagePart::FetchLoadState() const |
|
1206 { |
|
1207 NM_FUNCTION; |
|
1208 |
|
1209 //<qmail> |
|
1210 if(iMessagePartsStatus != EFSDefault) |
|
1211 { |
|
1212 return iMessagePartsStatus; |
|
1213 } |
|
1214 else if (iNmPrivateMessagePart->mSize == 0) |
|
1215 { |
|
1216 return EFSFull; |
|
1217 } |
|
1218 else if(iNmPrivateMessagePart->mFetchedSize == 0) |
|
1219 { |
|
1220 return EFSNone; |
|
1221 } |
|
1222 else if (iNmPrivateMessagePart->mFetchedSize < iNmPrivateMessagePart->mSize) |
|
1223 { |
|
1224 return EFSPartial; |
|
1225 } |
|
1226 else |
|
1227 { |
|
1228 return EFSFull; |
|
1229 } |
|
1230 //</qmail> |
|
1231 } |
|
1232 |
1190 // ----------------------------------------------------------------------------- |
1233 // ----------------------------------------------------------------------------- |
1191 // CFSMailMessagePart::FetchMessagePartL |
1234 // CFSMailMessagePart::FetchMessagePartL |
1192 // ----------------------------------------------------------------------------- |
1235 // ----------------------------------------------------------------------------- |
1193 EXPORT_C TInt CFSMailMessagePart::FetchMessagePartL( const TFSMailMsgId /*aMessagePartId*/, |
1236 EXPORT_C TInt CFSMailMessagePart::FetchMessagePartL( const TFSMailMsgId /*aMessagePartId*/, |
1194 MFSMailRequestObserver& aOperationObserver, |
1237 MFSMailRequestObserver& aOperationObserver, |