diff -r c84cf270c54f -r 92ab7f8d0eab phoneapp/phoneuistates/src/cphonegsmincall.cpp --- a/phoneapp/phoneuistates/src/cphonegsmincall.cpp Tue Feb 02 00:10:04 2010 +0200 +++ b/phoneapp/phoneuistates/src/cphonegsmincall.cpp Fri Mar 19 09:28:42 2010 +0200 @@ -128,20 +128,20 @@ case MEngineMonitor::EPEMessageOutCallForwToC: // fall through case MEngineMonitor::EPEMessageForwardUnconditionalModeActive: // fall through case MEngineMonitor::EPEMessageForwardConditionallyModeActive: - { - CPhoneGeneralGsmMessagesHandler* gsmMsgHandler = - CPhoneGeneralGsmMessagesHandler::NewL( *iStateMachine, - *iViewCommandHandle, - *this ); - CleanupStack::PushL( gsmMsgHandler ); - gsmMsgHandler->HandlePhoneEngineMessageL( aMessage, aCallId ); - CleanupStack::PopAndDestroy( gsmMsgHandler ); - + { + CPhoneGeneralGsmMessagesHandler* gsmMsgHandler = + CPhoneGeneralGsmMessagesHandler::NewL( *iStateMachine, + *iViewCommandHandle, + *this ); + CleanupStack::PushL( gsmMsgHandler ); + gsmMsgHandler->HandlePhoneEngineMessageL( aMessage, aCallId ); + CleanupStack::PopAndDestroy( gsmMsgHandler ); + // Needed also in non-touch, if call waiting request (*43#) // is sent during active call at least. - UpdateCbaL( EPhoneCallHandlingInCallCBA ); - } - break; + UpdateCbaL( EPhoneCallHandlingInCallCBA ); + } + break; default: CPhoneStateInCall::HandlePhoneEngineMessageL( @@ -170,7 +170,7 @@ // 'Replace' from menu case EPhoneInCallCmdReplace: - ReplaceCallL(); + ReplaceCallL(); break; case EPhoneInCallCmdSwap: @@ -218,23 +218,26 @@ // CPhoneGsmInCall::HandleColpNoteL // ----------------------------------------------------------- // -void CPhoneGsmInCall::HandleColpNoteL( TInt aCallId ) +void CPhoneGsmInCall::HandleColpNoteL( + TInt aCallId ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::HandleColpNoteL() "); MPEEngineInfo* EngineInfo = CPhoneState::iStateMachine->PhoneEngineInfo(); - - TPhoneCmdParamGlobalNote globalNoteParam; - globalNoteParam.SetText( EngineInfo->RemoteColpNumber( aCallId ) ); - globalNoteParam.SetType( EAknGlobalInformationNote ); - globalNoteParam.SetTextResourceId( + + if ( EngineInfo->RemoteColpNumber( aCallId ).Length() ) + { + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetText( EngineInfo->RemoteColpNumber( aCallId ) ); + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetTextResourceId( CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneColpConnected ) ); - globalNoteParam.SetTone( EAvkonSIDInformationTone ); - - iViewCommandHandle->ExecuteCommandL( - EPhoneViewShowGlobalNote, &globalNoteParam ); - + ResolveResourceID( EPhoneColpConnected ) ); + globalNoteParam.SetTone( EAvkonSIDInformationTone ); + + iViewCommandHandle->ExecuteCommandL( + EPhoneViewShowGlobalNote, &globalNoteParam ); + } } // ----------------------------------------------------------- @@ -387,7 +390,7 @@ CPhoneState::SetDivertIndication( aDivertIndication ); TRAP_IGNORE( HandeDivertIndicationL() ); - } + } // --------------------------------------------------------- // CPhoneGsmInCall::HandeDivertIndicationL @@ -406,12 +409,18 @@ { TPhoneCmdParamCallHeaderData divertData; - divertData.SetCallFlag( CBubbleManager::EDiverted ); +// <-- QT PHONE START --> +// divertData.SetCallFlag( CBubbleManager::EDiverted ); + divertData.SetDiverted( ETrue ); +// <-- QT PHONE END --> GetRemoteInfoDataL( ringingCallId, remoteInfoText ); divertData.SetCLIText( remoteInfoText, - CBubbleManager::ERight ); +// <-- QT PHONE START --> +// CBubbleManager::ERight ); + TPhoneCmdParamCallHeaderData::ERight ); +// <-- QT PHONE END --> divertData.SetCiphering( iStateMachine->PhoneEngineInfo()->IsSecureCall( ringingCallId ) );