equal
deleted
inserted
replaced
377 // -------------------------------------------------------------------------- |
377 // -------------------------------------------------------------------------- |
378 // |
378 // |
379 MVPbkStoreContactField* CPbk2AssignSpeedDialCmd::FocusedFieldLC |
379 MVPbkStoreContactField* CPbk2AssignSpeedDialCmd::FocusedFieldLC |
380 ( MVPbkStoreContact& aStoreContact ) |
380 ( MVPbkStoreContact& aStoreContact ) |
381 { |
381 { |
382 TInt index = KErrNotFound; |
382 TInt index = iUiControl->FocusedFieldIndex(); |
383 CPbk2PresentationContact* presentationContact = |
|
384 CPbk2PresentationContact::NewL( aStoreContact, |
|
385 iAppServices->FieldProperties() ); |
|
386 CleanupStack::PushL( presentationContact ); |
|
387 |
|
388 index = presentationContact->PresentationFields().StoreIndexOfField( |
|
389 iUiControl->FocusedFieldIndex() ); |
|
390 |
|
391 CleanupStack::PopAndDestroy( presentationContact ); |
|
392 |
|
393 if ( index != KErrNotFound ) |
383 if ( index != KErrNotFound ) |
394 { |
384 { |
395 // Use FieldAtLC to avoid the unvalidity of the field after new |
385 // Use FieldAtLC to avoid the unvalidity of the field after new |
396 // FieldAt call. |
386 // FieldAt call. |
397 return aStoreContact.Fields().FieldAtLC( index ); |
387 return aStoreContact.Fields().FieldAtLC( index ); |