41 TPhoneCallHeaderParam::TPhoneCallHeaderParam( |
41 TPhoneCallHeaderParam::TPhoneCallHeaderParam( |
42 MPhoneCallHeaderManagerUtility& aManagerUtility, |
42 MPhoneCallHeaderManagerUtility& aManagerUtility, |
43 MPhoneStateMachine& aStateMachine ) |
43 MPhoneStateMachine& aStateMachine ) |
44 : iManagerUtility ( aManagerUtility ), |
44 : iManagerUtility ( aManagerUtility ), |
45 iStateMachine ( aStateMachine ), |
45 iStateMachine ( aStateMachine ), |
46 iCallHeaderType ( CBubbleManager::ENormal ) |
46 iCallHeaderType ( CBubbleManager::ENormal ), |
|
47 iSetDivertIndication ( EFalse ) |
47 { |
48 { |
48 } |
49 } |
49 |
50 |
50 // ----------------------------------------------------------- |
51 // ----------------------------------------------------------- |
51 // TPhoneCallHeaderParam::SetCallHeaderTexts |
52 // TPhoneCallHeaderParam::SetCallHeaderTexts |
485 void TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader( |
486 void TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader( |
486 const TInt aCallId, |
487 const TInt aCallId, |
487 TPhoneCmdParamCallHeaderData* aCallHeaderData ) |
488 TPhoneCmdParamCallHeaderData* aCallHeaderData ) |
488 { |
489 { |
489 __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader( ) "); |
490 __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader( ) "); |
490 TBool forwarded = iStateMachine.PhoneEngineInfo()->CallForwarded( aCallId ); |
491 if( iSetDivertIndication ) |
491 if ( forwarded ) |
|
492 { |
492 { |
493 aCallHeaderData->AddCallFlag( CBubbleManager::EDiverted ); |
493 aCallHeaderData->AddCallFlag( CBubbleManager::EDiverted ); |
494 } |
494 } |
495 |
495 |
496 if ( iStateMachine.PhoneEngineInfo()->CallALSLine( aCallId ) == CCCECallParameters::ECCELineTypeAux ) |
496 if ( iStateMachine.PhoneEngineInfo()->CallALSLine( aCallId ) == CCCECallParameters::ECCELineTypeAux ) |
497 { |
497 { |
498 __PHONELOG( EBasic, EPhoneControl, |
498 __PHONELOG( EBasic, EPhoneControl, |
499 "TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader - CallALSLine() == CCCECallParameters::ECCELineTypeAux"); |
499 "TPhoneCallHeaderParam::SetDivertIndicatorToCallHeader - CallALSLine() == CCCECallParameters::ECCELineTypeAux"); |
500 aCallHeaderData->SetLine2( ETrue ); |
500 aCallHeaderData->SetLine2( ETrue ); |
501 } |
501 } |
|
502 } |
|
503 |
|
504 // --------------------------------------------------------------------------- |
|
505 // TPhoneCallHeaderParam::SetDivertIndication |
|
506 // --------------------------------------------------------------------------- |
|
507 // |
|
508 void TPhoneCallHeaderParam::SetDivertIndication( const TBool aDivertIndication ) |
|
509 { |
|
510 __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetDivertIndication( ) "); |
|
511 iSetDivertIndication = aDivertIndication; |
|
512 __PHONELOG1( EBasic, EPhoneControl, |
|
513 "TPhoneCallHeaderParam::SetDivertIndication() - iSetDivertIndication: %d ", |
|
514 iSetDivertIndication ) |
502 } |
515 } |
503 |
516 |
504 // --------------------------------------------------------------------------- |
517 // --------------------------------------------------------------------------- |
505 // TPhoneCallHeaderParam::SetIncomingCallHeaderParamsL |
518 // TPhoneCallHeaderParam::SetIncomingCallHeaderParamsL |
506 // --------------------------------------------------------------------------- |
519 // --------------------------------------------------------------------------- |
595 aCallHeaderData->SetCNAPText( remoteInfoText, CBubbleManager::ERight ); |
608 aCallHeaderData->SetCNAPText( remoteInfoText, CBubbleManager::ERight ); |
596 } |
609 } |
597 else |
610 else |
598 { |
611 { |
599 aCallHeaderData->SetCNAPText( iStateMachine.PhoneEngineInfo()-> |
612 aCallHeaderData->SetCNAPText( iStateMachine.PhoneEngineInfo()-> |
600 RemotePhoneNumber( aCallId ), CBubbleManager::ELeft ); |
613 RemotePhoneNumber( aCallId ), CBubbleManager::ELeft ); |
601 |
|
602 // No contact name, use phonenumber when available. |
|
603 if ( iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() |
|
604 && !ContactInfoAvailable( aCallId ) ) |
|
605 { |
|
606 aCallHeaderData->SetParticipantListCLI( |
|
607 TPhoneCmdParamCallHeaderData::EPhoneParticipantCNAPText ); |
|
608 } |
|
609 } |
614 } |
610 } |
615 } |
611 else |
616 else |
612 { |
617 { |
613 aCallHeaderData->SetCLIText( |
618 aCallHeaderData->SetCLIText( |
643 |
648 |
644 // Update caller image |
649 // Update caller image |
645 SetCallerImage( |
650 SetCallerImage( |
646 aCallId, |
651 aCallId, |
647 aCallHeaderData ); |
652 aCallHeaderData ); |
648 |
|
649 // Update divert indication |
|
650 SetDivertIndicatorToCallHeader( aCallId, aCallHeaderData ); |
|
651 } |
653 } |
652 |
654 |
653 // --------------------------------------------------------------------------- |
655 // --------------------------------------------------------------------------- |
654 // TPhoneCallHeaderParam::IsCallPrivateOrPayPhone |
656 // TPhoneCallHeaderParam::IsCallPrivateOrPayPhone |
655 // --------------------------------------------------------------------------- |
657 // --------------------------------------------------------------------------- |