phoneapp/phoneuistates/src/cphonegsmincall.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 62 5266b1f337bd
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   287     // Set Phone as the top application
   287     // Set Phone as the top application
   288     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetTopApplication,
   288     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetTopApplication,
   289         &uidParam );
   289         &uidParam );
   290     
   290     
   291     // Disable global notes when there is an incoming call
   291     // Disable global notes when there is an incoming call
   292     TPhoneCmdParamBoolean globalNotifierParam;
   292     DisableGlobalNotifiersL();
   293     globalNotifierParam.SetBoolean( ETrue );
   293     DisableEikonNotifiersL();
   294     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
       
   295         &globalNotifierParam );
       
   296     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
       
   297         &globalNotifierParam );
       
   298     
       
   299     }
   294     }
   300 
   295 
   301 // -----------------------------------------------------------
   296 // -----------------------------------------------------------
   302 // CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL
   297 // CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL
   303 // -----------------------------------------------------------
   298 // -----------------------------------------------------------
   397         
   392         
   398     iViewCommandHandle->ExecuteCommandL( 
   393     iViewCommandHandle->ExecuteCommandL( 
   399             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   394             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   400     }
   395     }
   401 
   396 
       
   397 
       
   398 // ---------------------------------------------------------
       
   399 // CPhoneGsmInCall::SetDivertIndication
       
   400 // ---------------------------------------------------------
       
   401 //
       
   402 EXPORT_C void CPhoneGsmInCall::SetDivertIndication( const TBool aDivertIndication )
       
   403     {
       
   404     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneGsmInCall::SetDivertIndication()");
       
   405            
       
   406     CPhoneState::SetDivertIndication( aDivertIndication );    
       
   407     
       
   408     TRAP_IGNORE( HandeDivertIndicationL() );
       
   409 	}
       
   410 
       
   411 // ---------------------------------------------------------
       
   412 // CPhoneGsmInCall::HandeDivertIndicationL
       
   413 // ---------------------------------------------------------
       
   414 //
       
   415 void CPhoneGsmInCall::HandeDivertIndicationL()
       
   416     {
       
   417     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneGsmInCall::HandeDivertIndicationL()");
       
   418        
       
   419     TBuf< KPhoneContactNameMaxLength > remoteInfoText( KNullDesC );
       
   420     TInt ringingCallId ( KErrNotFound );
       
   421         
       
   422     ringingCallId = GetRingingCallL();
       
   423     
       
   424     if( ringingCallId > KErrNotFound )
       
   425        {
       
   426        TPhoneCmdParamCallHeaderData divertData;
       
   427     
       
   428        divertData.SetCallFlag( CBubbleManager::EDiverted );
       
   429        
       
   430        GetRemoteInfoDataL( ringingCallId, remoteInfoText );
       
   431        divertData.SetCLIText( 
       
   432                   remoteInfoText,
       
   433                   CBubbleManager::ERight );
       
   434        
       
   435        divertData.SetCiphering(
       
   436            iStateMachine->PhoneEngineInfo()->IsSecureCall( ringingCallId ) );
       
   437        divertData.SetCipheringIndicatorAllowed(
       
   438            iStateMachine->PhoneEngineInfo()->SecureSpecified() );
       
   439            
       
   440        iViewCommandHandle->ExecuteCommandL( 
       
   441            EPhoneViewUpdateCallHeaderRemoteInfoData, ringingCallId,
       
   442            &divertData );
       
   443         }
       
   444     }
       
   445 
   402 // End of File
   446 // End of File