textinput/ptienginev2/src/PtiKeyMapData.cpp
branchRCL_3
changeset 43 ebd48d2de13c
parent 14 e6a39382bb9c
child 44 ecbabf52600f
equal deleted inserted replaced
39:ac7e4d1d9209 43:ebd48d2de13c
   294 // ---------------------------------------------------------------------------
   294 // ---------------------------------------------------------------------------
   295 //
   295 //
   296 EXPORT_C void CPtiKeyMapData::GetNumericModeKeysL(TPtiKeyboardType aKeyboardType,
   296 EXPORT_C void CPtiKeyMapData::GetNumericModeKeysL(TPtiKeyboardType aKeyboardType,
   297                                                   RArray<TPtiNumericKeyBinding>& aResult) const
   297                                                   RArray<TPtiNumericKeyBinding>& aResult) const
   298 	{	
   298 	{	
   299 	CleanupClosePushL( aResult );
       
   300 	TInt numItems = 0;
   299 	TInt numItems = 0;
   301 	const TPtiNumericKeyBinding* data = NumericModeKeysTable(aKeyboardType, numItems);
   300 	const TPtiNumericKeyBinding* data = NumericModeKeysTable(aKeyboardType, numItems);
   302 
   301 
   303 	aResult.Reset();
   302 	aResult.Reset();
   304 
   303 
   307 		for (TInt i = 0; i < numItems; i++)
   306 		for (TInt i = 0; i < numItems; i++)
   308 			{
   307 			{
   309 			User::LeaveIfError(aResult.Append(data[i]));
   308 			User::LeaveIfError(aResult.Append(data[i]));
   310 			}
   309 			}
   311 		}
   310 		}
   312     CleanupStack::Pop();
       
   313 	}	 	 	
   311 	}	 	 	
   314 	 	 		 
   312 	 	 		 
   315 	       	
   313 	       	
   316 // ---------------------------------------------------------------------------
   314 // ---------------------------------------------------------------------------
   317 // CPtiKeyMapData::IsNumberModeKey
   315 // CPtiKeyMapData::IsNumberModeKey
   479 // 
   477 // 
   480 // ---------------------------------------------------------------------------
   478 // ---------------------------------------------------------------------------
   481 //			
   479 //			
   482 EXPORT_C void CPtiKeyMapDataFactory::ListImplementationsL(RArray<TInt>& aResult)
   480 EXPORT_C void CPtiKeyMapDataFactory::ListImplementationsL(RArray<TInt>& aResult)
   483     {
   481     {
   484 	CleanupClosePushL( aResult );
       
   485 	RImplInfoPtrArray infoArray;
   482 	RImplInfoPtrArray infoArray;
   486 	TInt i;
   483 	TInt i;
   487 
   484 
   488 	aResult.Reset();
   485 	aResult.Reset();
   489 	CleanupStack::PushL( TCleanupItem( CleanupArray, &infoArray ) );
   486 	CleanupStack::PushL( TCleanupItem( CleanupArray, &infoArray ) );
   493 		{
   490 		{
   494 		aResult.AppendL(infoArray[i]->ImplementationUid().iUid);
   491 		aResult.AppendL(infoArray[i]->ImplementationUid().iUid);
   495 		}
   492 		}
   496 
   493 
   497 	CleanupStack::PopAndDestroy(); // infoArray     
   494 	CleanupStack::PopAndDestroy(); // infoArray     
   498     CleanupStack::Pop();
       
   499     }
   495     }
   500         	
   496         	
   501         	
   497         	
   502 // ---------------------------------------------------------------------------
   498 // ---------------------------------------------------------------------------
   503 // CPtiKeyMapDataFactory::~CPtiKeyMapDataFactory
   499 // CPtiKeyMapDataFactory::~CPtiKeyMapDataFactory