equal
deleted
inserted
replaced
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 ); |
299 TInt numItems = 0; |
300 TInt numItems = 0; |
300 const TPtiNumericKeyBinding* data = NumericModeKeysTable(aKeyboardType, numItems); |
301 const TPtiNumericKeyBinding* data = NumericModeKeysTable(aKeyboardType, numItems); |
301 |
302 |
302 aResult.Reset(); |
303 aResult.Reset(); |
303 |
304 |
306 for (TInt i = 0; i < numItems; i++) |
307 for (TInt i = 0; i < numItems; i++) |
307 { |
308 { |
308 User::LeaveIfError(aResult.Append(data[i])); |
309 User::LeaveIfError(aResult.Append(data[i])); |
309 } |
310 } |
310 } |
311 } |
|
312 CleanupStack::Pop(); |
311 } |
313 } |
312 |
314 |
313 |
315 |
314 // --------------------------------------------------------------------------- |
316 // --------------------------------------------------------------------------- |
315 // CPtiKeyMapData::IsNumberModeKey |
317 // CPtiKeyMapData::IsNumberModeKey |
477 // |
479 // |
478 // --------------------------------------------------------------------------- |
480 // --------------------------------------------------------------------------- |
479 // |
481 // |
480 EXPORT_C void CPtiKeyMapDataFactory::ListImplementationsL(RArray<TInt>& aResult) |
482 EXPORT_C void CPtiKeyMapDataFactory::ListImplementationsL(RArray<TInt>& aResult) |
481 { |
483 { |
|
484 CleanupClosePushL( aResult ); |
482 RImplInfoPtrArray infoArray; |
485 RImplInfoPtrArray infoArray; |
483 TInt i; |
486 TInt i; |
484 |
487 |
485 aResult.Reset(); |
488 aResult.Reset(); |
486 CleanupStack::PushL( TCleanupItem( CleanupArray, &infoArray ) ); |
489 CleanupStack::PushL( TCleanupItem( CleanupArray, &infoArray ) ); |
490 { |
493 { |
491 aResult.AppendL(infoArray[i]->ImplementationUid().iUid); |
494 aResult.AppendL(infoArray[i]->ImplementationUid().iUid); |
492 } |
495 } |
493 |
496 |
494 CleanupStack::PopAndDestroy(); // infoArray |
497 CleanupStack::PopAndDestroy(); // infoArray |
|
498 CleanupStack::Pop(); |
495 } |
499 } |
496 |
500 |
497 |
501 |
498 // --------------------------------------------------------------------------- |
502 // --------------------------------------------------------------------------- |
499 // CPtiKeyMapDataFactory::~CPtiKeyMapDataFactory |
503 // CPtiKeyMapDataFactory::~CPtiKeyMapDataFactory |