equal
deleted
inserted
replaced
2220 delete iPlainBodyText; |
2220 delete iPlainBodyText; |
2221 iPlainBodyText = NULL; |
2221 iPlainBodyText = NULL; |
2222 iIsNewChunk = ETrue; |
2222 iIsNewChunk = ETrue; |
2223 |
2223 |
2224 iCurrentChunk.Close(); |
2224 iCurrentChunk.Close(); |
2225 iCurrentChunk.Create(KChunkSize); |
2225 iCurrentChunk.CreateL(KChunkSize); |
2226 |
2226 |
2227 if (aServerEntry.HasStoreL()) |
2227 if (aServerEntry.HasStoreL()) |
2228 { |
2228 { |
2229 CMsvStore* store = aServerEntry.ReadStoreL(); |
2229 CMsvStore* store = aServerEntry.ReadStoreL(); |
2230 CleanupStack::PushL(store); |
2230 CleanupStack::PushL(store); |
2301 // Rearrange the remaining data from current chunk. |
2301 // Rearrange the remaining data from current chunk. |
2302 iCurrentChunk.Delete(0, iPos); |
2302 iCurrentChunk.Delete(0, iPos); |
2303 TInt currentChunkLength = iCurrentChunk.Length(); |
2303 TInt currentChunkLength = iCurrentChunk.Length(); |
2304 |
2304 |
2305 // Resize iCurrentChunk as per data left for send operation. |
2305 // Resize iCurrentChunk as per data left for send operation. |
2306 iCurrentChunk.ReAlloc(KChunkSize + currentChunkLength); |
2306 iCurrentChunk.ReAllocL(KChunkSize + currentChunkLength); |
2307 iCurrentChunk.SetMax(); |
2307 iCurrentChunk.SetMax(); |
2308 |
2308 |
2309 TPtr16 restoredChunkPtr = iCurrentChunk.MidTPtr(currentChunkLength); |
2309 TPtr16 restoredChunkPtr = iCurrentChunk.MidTPtr(currentChunkLength); |
2310 |
2310 |
2311 // Restore the chunk from Message Store. |
2311 // Restore the chunk from Message Store. |