textinput/peninputarc/src/peninputclient/penclientimpl.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 7 6defe5d1bd39
child 11 c8fb4cf7b3ae
equal deleted inserted replaced
8:4eb1ae11334f 9:e6a39382bb9c
   928 // Read buffer
   928 // Read buffer
   929 // ---------------------------------------------------------------------------
   929 // ---------------------------------------------------------------------------
   930 //
   930 //
   931 void RPeninputServerImpl::ReadIntArrayFromBufL(const TDesC8& aBuf, RArray<TInt>& aResult)
   931 void RPeninputServerImpl::ReadIntArrayFromBufL(const TDesC8& aBuf, RArray<TInt>& aResult)
   932     {
   932     {
       
   933 	CleanupClosePushL( aResult );
   933 	RDesReadStream readStream;
   934 	RDesReadStream readStream;
   934 	readStream.Open(aBuf);
   935 	readStream.Open(aBuf);
   935 	CleanupClosePushL(readStream);
   936 	CleanupClosePushL(readStream);
   936 	const TInt entryCount = readStream.ReadInt32L();
   937 	const TInt entryCount = readStream.ReadInt32L();
   937 
   938 
   939 		{
   940 		{
   940 		aResult.AppendL(readStream.ReadInt32L());
   941 		aResult.AppendL(readStream.ReadInt32L());
   941 		}
   942 		}
   942 		
   943 		
   943     CleanupStack::PopAndDestroy(&readStream);
   944     CleanupStack::PopAndDestroy(&readStream);
       
   945     CleanupStack::Pop( &aResult );
   944     }
   946     }
   945 
   947 
   946 // ---------------------------------------------------------------------------
   948 // ---------------------------------------------------------------------------
   947 // RPeninputServerImpl::SetForeground
   949 // RPeninputServerImpl::SetForeground
   948 // Set current session to be foreground application session
   950 // Set current session to be foreground application session