textinput/ptienginev2/src/Ptiqwertykeymappings.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 0 eb1f2e154e89
child 20 ebd48d2de13c
equal deleted inserted replaced
8:4eb1ae11334f 9:e6a39382bb9c
   870 // ---------------------------------------------------------------------------
   870 // ---------------------------------------------------------------------------
   871 // 
   871 // 
   872 void CPtiQwertyKeyMappings::GetNumericModeKeysFromDataL(RArray<TPtiNumericKeyBinding>& aResult)
   872 void CPtiQwertyKeyMappings::GetNumericModeKeysFromDataL(RArray<TPtiNumericKeyBinding>& aResult)
   873 	{
   873 	{
   874 	__ASSERT_DEBUG(iKeyMapData, User::Panic(KPtiNoQwertyKeyMapDataPanic, KErrCorrupt));
   874 	__ASSERT_DEBUG(iKeyMapData, User::Panic(KPtiNoQwertyKeyMapDataPanic, KErrCorrupt));
       
   875 	CleanupClosePushL( aResult );
   875 	
   876 	
   876 	TInt numEntries = 0;
   877 	TInt numEntries = 0;
   877 	const TPtiNumericKeyBinding* dataEntries = iKeyMapData->NumericModeKeysTable(iKeyboardType, 
   878 	const TPtiNumericKeyBinding* dataEntries = iKeyMapData->NumericModeKeysTable(iKeyboardType, 
   878 	                                                                             numEntries);
   879 	                                                                             numEntries);
   879 	
   880 	
   880 	for (TInt i = 0; i < numEntries; i++)
   881 	for (TInt i = 0; i < numEntries; i++)
   881 		{
   882 		{
   882 		User::LeaveIfError(aResult.Append(dataEntries[i]));
   883 		User::LeaveIfError(aResult.Append(dataEntries[i]));
   883 		}
   884 		}
       
   885 	CleanupStack::Pop( &aResult );
   884 	}
   886 	}
   885 			
   887 			
   886 
   888 
   887 // ---------------------------------------------------------------------------
   889 // ---------------------------------------------------------------------------
   888 // CPtiQwertyKeyMappings::WriteData (DEPRECATED)
   890 // CPtiQwertyKeyMappings::WriteData (DEPRECATED)