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) |
359 if ( err != KErrNone && err != KErrNotFound) User::Leave( err ); |
360 { |
360 TRAPD( err2, iTagArray[aIndex]->SpeechItem()->PartialTextL( KExtensionTrainingIndex ) ); |
361 User::Leave( err ); |
361 if ( err2 != KErrNone && err2 != KErrNotFound) User::Leave( err2 ); |
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 ); |
|
370 |
362 |
371 // fetch whole tts string |
363 // fetch whole tts string |
372 const TDesC& text = iTagArray[aIndex]->SpeechItem()->Text(); |
364 const TDesC& text = iTagArray[aIndex]->SpeechItem()->Text(); |
373 TInt contactIndex; |
365 TInt contactIndex; |
374 TInt typeIndex; |
366 TInt typeIndex; |
447 else |
439 else |
448 { |
440 { |
449 // if there is only one part (contact), play normally |
441 // if there is only one part (contact), play normally |
450 iTagArray[aIndex]->SpeechItem()->PlayL( this ); |
442 iTagArray[aIndex]->SpeechItem()->PlayL( this ); |
451 } |
443 } |
452 CleanupStack::PopAndDestroy( 2,contact ); |
|
453 } |
444 } |
454 |
445 |
455 // ---------------------------------------------------------------------------- |
446 // ---------------------------------------------------------------------------- |
456 // CPbkInfoViewSindHandler::CancelPlaybackL |
447 // CPbkInfoViewSindHandler::CancelPlaybackL |
457 // Cancels voice tag playback. |
448 // Cancels voice tag playback. |