messagingfw/msgsrvnstore/server/src/CMsvPlainBodyText.cpp
changeset 40 320ec5cd0227
parent 0 8e480a14352b
child 44 7c176670643f
equal deleted inserted replaced
33:61f466445ae5 40:320ec5cd0227
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   606 			// iRfileReadBuf8 will be closed when ConvertChunkToUnicodeForRestoreL returns.
   606 			// iRfileReadBuf8 will be closed when ConvertChunkToUnicodeForRestoreL returns.
   607  			numOfBytesInCurrentChunk = ConvertChunkToUnicodeForRestoreL();
   607  			numOfBytesInCurrentChunk = ConvertChunkToUnicodeForRestoreL();
   608 			}
   608 			}
   609 
   609 
   610 		// Push start position of current chunk in to the stack.
   610 		// Push start position of current chunk in to the stack.
   611 		iStartPosOfEachChunkInFile.Append(iStartPosOfNextChunk);
   611 		iStartPosOfEachChunkInFile.AppendL(iStartPosOfNextChunk);
   612 		iStartPosOfNextChunk += numOfBytesInCurrentChunk;
   612 		iStartPosOfNextChunk += numOfBytesInCurrentChunk;
   613 		iReadChunkLength = numOfBytesInCurrentChunk;
   613 		iReadChunkLength = numOfBytesInCurrentChunk;
   614 		}
   614 		}
   615 	else // KMsvPlainBodyText16
   615 	else // KMsvPlainBodyText16
   616 		{
   616 		{
   917 					iPrevChunk = EFalse;
   917 					iPrevChunk = EFalse;
   918 					}
   918 					}
   919 				else
   919 				else
   920 					{
   920 					{
   921 					// Push Start position of current chunk in to the stack.
   921 					// Push Start position of current chunk in to the stack.
   922 					iStartPosOfEachChunkInFile.Append(iStartPosOfNextChunk);
   922 					iStartPosOfEachChunkInFile.AppendL(iStartPosOfNextChunk);
   923 					iStartPosOfNextChunk += numOfBytesInCurrentChunk;
   923 					iStartPosOfNextChunk += numOfBytesInCurrentChunk;
   924 					}
   924 					}
   925 				iReadChunkLength = numOfBytesInCurrentChunk;
   925 				iReadChunkLength = numOfBytesInCurrentChunk;
   926 				Complete(iStatus.Int());
   926 				Complete(iStatus.Int());
   927 				}
   927 				}