equal
deleted
inserted
replaced
55 // (other items were commented in a header). |
55 // (other items were commented in a header). |
56 // ----------------------------------------------------------- |
56 // ----------------------------------------------------------- |
57 // |
57 // |
58 CPhoneConferenceAndSingle::~CPhoneConferenceAndSingle() |
58 CPhoneConferenceAndSingle::~CPhoneConferenceAndSingle() |
59 { |
59 { |
60 // Reset flag |
60 // Need to check iViewCommandHandle validity here to not |
|
61 // trigger a high/can panic error in a Codescanner run. |
|
62 // coverity[var_compare_op] |
61 if ( iViewCommandHandle ) |
63 if ( iViewCommandHandle ) |
62 { |
64 { |
63 TPhoneCmdParamBoolean dtmfSendFlag; |
65 TPhoneCmdParamBoolean dtmfSendFlag; |
64 dtmfSendFlag.SetBoolean( EFalse ); |
66 dtmfSendFlag.SetBoolean( EFalse ); |
65 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetDtmfOptionsFlag, |
67 TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL( EPhoneViewSetDtmfOptionsFlag, |
66 &dtmfSendFlag ); |
68 &dtmfSendFlag ) ); |
67 } |
69 } |
68 } |
70 } |
69 |
71 |
70 // ----------------------------------------------------------- |
72 // ----------------------------------------------------------- |
71 // CPhoneConferenceAndSingle::ConstructL() |
73 // CPhoneConferenceAndSingle::ConstructL() |
458 { |
460 { |
459 __LOGMETHODSTARTEND( EPhoneUIStates, |
461 __LOGMETHODSTARTEND( EPhoneUIStates, |
460 "CPhoneConferenceAndSingle::HandleIncomingL"); |
462 "CPhoneConferenceAndSingle::HandleIncomingL"); |
461 |
463 |
462 BeginUiUpdateLC(); |
464 BeginUiUpdateLC(); |
|
465 |
|
466 // Hide the number entry if it exists |
|
467 if ( IsNumberEntryUsedL() ) |
|
468 { |
|
469 SetNumberEntryVisibilityL( EFalse ); |
|
470 } |
463 |
471 |
464 TPhoneCmdParamBoolean dialerParam; |
472 TPhoneCmdParamBoolean dialerParam; |
465 dialerParam.SetBoolean( ETrue ); |
473 dialerParam.SetBoolean( ETrue ); |
466 |
474 |
467 // Get allow waiting call header param value. |
475 // Get allow waiting call header param value. |
651 MPEPhoneModel::EPEMessageCheckEmergencyNumber ); |
659 MPEPhoneModel::EPEMessageCheckEmergencyNumber ); |
652 } |
660 } |
653 CleanupStack::PopAndDestroy( phoneNumber ); |
661 CleanupStack::PopAndDestroy( phoneNumber ); |
654 } |
662 } |
655 |
663 |
|
664 // ----------------------------------------------------------- |
|
665 // CPhoneConferenceAndSingle::DisconnectCallL |
|
666 // ----------------------------------------------------------- |
|
667 // |
|
668 void CPhoneConferenceAndSingle::DisconnectCallL() |
|
669 { |
|
670 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneConferenceAndSingle::DisconnectCallL( ) "); |
|
671 // Fetch active call's id from view |
|
672 TPhoneCmdParamCallStateData callStateData; |
|
673 callStateData.SetCallState( EPEStateConnected ); |
|
674 iViewCommandHandle->HandleCommandL( |
|
675 EPhoneViewGetCallIdByState, &callStateData ); |
|
676 |
|
677 if( callStateData.CallId() > KErrNotFound && callStateData.CallId() == KConferenceCallId ) |
|
678 { |
|
679 iStateMachine->SendPhoneEngineMessage( |
|
680 CPEPhoneModelIF::EPEMessageHangUpConference ); |
|
681 } |
|
682 else |
|
683 { |
|
684 CPhoneState::DisconnectCallL(); |
|
685 } |
|
686 } |
|
687 |
656 // End of File |
688 // End of File |