equal
deleted
inserted
replaced
354 // fetch contact name and contact type (mobile, e-mail etc.) |
354 // fetch contact name and contact type (mobile, e-mail etc.) |
355 // ignore KErrNotFound leave |
355 // ignore KErrNotFound leave |
356 HBufC* contact = NULL; |
356 HBufC* contact = NULL; |
357 HBufC* type = NULL; |
357 HBufC* type = NULL; |
358 TRAPD( err, contact = iTagArray[aIndex]->SpeechItem()->PartialTextL( KNameTrainingIndex ) ); |
358 TRAPD( err, contact = iTagArray[aIndex]->SpeechItem()->PartialTextL( KNameTrainingIndex ) ); |
359 if ( err != KErrNone && err != KErrNotFound) User::Leave( err ); |
359 if ( err != KErrNone && err != KErrNotFound) |
360 TRAPD( err2, iTagArray[aIndex]->SpeechItem()->PartialTextL( KExtensionTrainingIndex ) ); |
360 { |
361 if ( err2 != KErrNone && err2 != KErrNotFound) User::Leave( err2 ); |
361 User::Leave( err ); |
|
362 } |
|
363 CleanupStack::PushL( contact ); |
|
364 TRAPD( err2, type = iTagArray[aIndex]->SpeechItem()->PartialTextL( KExtensionTrainingIndex ) ); |
|
365 if ( err2 != KErrNone && err2 != KErrNotFound) |
|
366 { |
|
367 User::Leave( err2 ); |
|
368 } |
|
369 CleanupStack::PushL( type ); |
362 |
370 |
363 // fetch whole tts string |
371 // fetch whole tts string |
364 const TDesC& text = iTagArray[aIndex]->SpeechItem()->Text(); |
372 const TDesC& text = iTagArray[aIndex]->SpeechItem()->Text(); |
365 TInt contactIndex; |
373 TInt contactIndex; |
366 TInt typeIndex; |
374 TInt typeIndex; |
439 else |
447 else |
440 { |
448 { |
441 // if there is only one part (contact), play normally |
449 // if there is only one part (contact), play normally |
442 iTagArray[aIndex]->SpeechItem()->PlayL( this ); |
450 iTagArray[aIndex]->SpeechItem()->PlayL( this ); |
443 } |
451 } |
|
452 CleanupStack::PopAndDestroy( 2,contact ); |
444 } |
453 } |
445 |
454 |
446 // ---------------------------------------------------------------------------- |
455 // ---------------------------------------------------------------------------- |
447 // CPbkInfoViewSindHandler::CancelPlaybackL |
456 // CPbkInfoViewSindHandler::CancelPlaybackL |
448 // Cancels voice tag playback. |
457 // Cancels voice tag playback. |