equal
deleted
inserted
replaced
32 #include "phonerssbase.h" |
32 #include "phonerssbase.h" |
33 #include "tphonecmdparamglobalnote.h" |
33 #include "tphonecmdparamglobalnote.h" |
34 #include "phoneui.hrh" |
34 #include "phoneui.hrh" |
35 #include "mphonestorage.h" |
35 #include "mphonestorage.h" |
36 #include "cphonecenrepproxy.h" |
36 #include "cphonecenrepproxy.h" |
37 #include <TelephonyVariant.hrh> |
37 #include <telephonyvariant.hrh> |
38 |
38 |
39 // ================= MEMBER FUNCTIONS ======================= |
39 // ================= MEMBER FUNCTIONS ======================= |
40 |
40 |
41 // C++ default constructor can NOT contain any code, that |
41 // C++ default constructor can NOT contain any code, that |
42 // might leave. |
42 // might leave. |
55 // (other items were commented in a header). |
55 // (other items were commented in a header). |
56 // ----------------------------------------------------------- |
56 // ----------------------------------------------------------- |
57 // |
57 // |
58 CPhoneConferenceAndSingleAndWaiting::~CPhoneConferenceAndSingleAndWaiting() |
58 CPhoneConferenceAndSingleAndWaiting::~CPhoneConferenceAndSingleAndWaiting() |
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 // CPhoneConferenceAndSingleAndWaiting::ConstructL() |
73 // CPhoneConferenceAndSingleAndWaiting::ConstructL() |
431 if( EKeyDeviceF == aKeyEvent.iCode ) |
433 if( EKeyDeviceF == aKeyEvent.iCode ) |
432 { |
434 { |
433 __PHONELOG( EBasic, EPhoneUIStates, |
435 __PHONELOG( EBasic, EPhoneUIStates, |
434 "CPhoneConferenceAndSingleAndWaiting::HandleKeyMessageL-deviceF" ); |
436 "CPhoneConferenceAndSingleAndWaiting::HandleKeyMessageL-deviceF" ); |
435 HandleHoldSwitchL(); |
437 HandleHoldSwitchL(); |
|
438 } |
|
439 } |
|
440 |
|
441 // ----------------------------------------------------------- |
|
442 // CPhoneConferenceAndSingleAndWaiting::HandleErrorL |
|
443 // ----------------------------------------------------------- |
|
444 // |
|
445 EXPORT_C void CPhoneConferenceAndSingleAndWaiting::HandleErrorL( |
|
446 const TPEErrorInfo& aErrorInfo ) |
|
447 { |
|
448 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndSingleAndWaiting::HandleErrorL()"); |
|
449 |
|
450 if( aErrorInfo.iErrorCode == ECCPErrorCCUserAlertingNoAnswer ) |
|
451 { |
|
452 // Should not shown "No Answer" note |
|
453 __PHONELOG1( EBasic, EPhoneUIStates, |
|
454 "PhoneUIStates: CPhoneConferenceAndSingleAndWaiting::HandleErrorL - aErrorInfo.iErrorCode =%d ", |
|
455 aErrorInfo.iErrorCode); |
|
456 } |
|
457 else |
|
458 { |
|
459 CPhoneState::HandleErrorL( aErrorInfo ); |
436 } |
460 } |
437 } |
461 } |
438 |
462 |
439 // ----------------------------------------------------------- |
463 // ----------------------------------------------------------- |
440 // CPhoneConferenceAndSingleAndWaiting::UpdateInCallCbaL |
464 // CPhoneConferenceAndSingleAndWaiting::UpdateInCallCbaL |