phoneapp/phoneuistates/src/cphonegsmincall.cpp
branchRCL_3
changeset 58 40a3f856b14d
parent 19 544e34b3255a
child 61 41a7f70b3818
equal deleted inserted replaced
57:94dc1107e8b2 58:40a3f856b14d
   397         
   397         
   398     iViewCommandHandle->ExecuteCommandL( 
   398     iViewCommandHandle->ExecuteCommandL( 
   399             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   399             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   400     }
   400     }
   401 
   401 
   402 
       
   403 // ---------------------------------------------------------
       
   404 // CPhoneGsmInCall::SetDivertIndication
       
   405 // ---------------------------------------------------------
       
   406 //
       
   407 EXPORT_C void CPhoneGsmInCall::SetDivertIndication( const TBool aDivertIndication )
       
   408     {
       
   409     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneGsmInCall::SetDivertIndication()");
       
   410            
       
   411     CPhoneState::SetDivertIndication( aDivertIndication );    
       
   412     
       
   413     TRAP_IGNORE( HandeDivertIndicationL() );
       
   414 	}
       
   415 
       
   416 // ---------------------------------------------------------
       
   417 // CPhoneGsmInCall::HandeDivertIndicationL
       
   418 // ---------------------------------------------------------
       
   419 //
       
   420 void CPhoneGsmInCall::HandeDivertIndicationL()
       
   421     {
       
   422     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneGsmInCall::HandeDivertIndicationL()");
       
   423        
       
   424     TBuf< KPhoneContactNameMaxLength > remoteInfoText( KNullDesC );
       
   425     TInt ringingCallId ( KErrNotFound );
       
   426         
       
   427     ringingCallId = GetRingingCallL();
       
   428     
       
   429     if( ringingCallId > KErrNotFound )
       
   430        {
       
   431        TPhoneCmdParamCallHeaderData divertData;
       
   432     
       
   433        divertData.SetCallFlag( CBubbleManager::EDiverted );
       
   434        
       
   435        GetRemoteInfoDataL( ringingCallId, remoteInfoText );
       
   436        divertData.SetCLIText( 
       
   437                   remoteInfoText,
       
   438                   CBubbleManager::ERight );
       
   439        
       
   440        divertData.SetCiphering(
       
   441            iStateMachine->PhoneEngineInfo()->IsSecureCall( ringingCallId ) );
       
   442        divertData.SetCipheringIndicatorAllowed(
       
   443            iStateMachine->PhoneEngineInfo()->SecureSpecified() );
       
   444            
       
   445        iViewCommandHandle->ExecuteCommandL( 
       
   446            EPhoneViewUpdateCallHeaderRemoteInfoData, ringingCallId,
       
   447            &divertData );
       
   448         }
       
   449     }
       
   450 
       
   451 // End of File
   402 // End of File