equal
deleted
inserted
replaced
293 HBufC8* buf8 = HBufC8::NewLC( sizeof(TInt) // For active index |
293 HBufC8* buf8 = HBufC8::NewLC( sizeof(TInt) // For active index |
294 + sizeof(TInt) // For the count of item array |
294 + sizeof(TInt) // For the count of item array |
295 + sizeof(TInt) // for langcode |
295 + sizeof(TInt) // for langcode |
296 + sizeof(TInt)*( itemArray->Count() ) // For the size of each item |
296 + sizeof(TInt)*( itemArray->Count() ) // For the size of each item |
297 + sumSize// For all of char data |
297 + sumSize// For all of char data |
|
298 + 4*sizeof(TInt) // For the Rect |
298 ); |
299 ); |
299 TPtr8 buf8Ptr = buf8->Des(); |
300 TPtr8 buf8Ptr = buf8->Des(); |
300 RDesWriteStream writeStream; |
301 RDesWriteStream writeStream; |
301 CleanupClosePushL(writeStream); |
302 CleanupClosePushL(writeStream); |
302 writeStream.Open( buf8Ptr ); |
303 writeStream.Open( buf8Ptr ); |
307 for ( TInt i = 0; i < itemArray->Count(); i++ ) |
308 for ( TInt i = 0; i < itemArray->Count(); i++ ) |
308 { |
309 { |
309 writeStream.WriteInt32L( (*itemArray)[i].Size() ); |
310 writeStream.WriteInt32L( (*itemArray)[i].Size() ); |
310 writeStream.WriteL( (*itemArray)[i].Ptr(), (*itemArray)[i].Length() ); |
311 writeStream.WriteL( (*itemArray)[i].Ptr(), (*itemArray)[i].Length() ); |
311 } |
312 } |
|
313 |
|
314 writeStream.WriteInt32L( candidatelist->iRect.iTl.iX); |
|
315 writeStream.WriteInt32L( candidatelist->iRect.iTl.iY ); |
|
316 writeStream.WriteInt32L( candidatelist->iRect.iBr.iX); |
|
317 writeStream.WriteInt32L( candidatelist->iRect.iBr.iY ); |
|
318 |
312 writeStream.CommitL(); |
319 writeStream.CommitL(); |
313 CleanupStack::PopAndDestroy( &writeStream ); |
320 CleanupStack::PopAndDestroy( &writeStream ); |
314 SendCommandToServer( aCommandId, buf8Ptr ); |
321 SendCommandToServer( aCommandId, buf8Ptr ); |
315 CleanupStack::PopAndDestroy( buf8 ); |
322 CleanupStack::PopAndDestroy( buf8 ); |
316 } |
323 } |