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. |
60 // Reset flag |
60 // Reset flag |
61 if ( iViewCommandHandle ) |
61 if ( iViewCommandHandle ) |
62 { |
62 { |
63 TPhoneCmdParamBoolean dtmfSendFlag; |
63 TPhoneCmdParamBoolean dtmfSendFlag; |
64 dtmfSendFlag.SetBoolean( EFalse ); |
64 dtmfSendFlag.SetBoolean( EFalse ); |
65 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetDtmfOptionsFlag, |
65 // <-- QT PHONE START --> |
66 &dtmfSendFlag ); |
66 iViewCommandHandle->ExecuteCommand( EPhoneViewSetDtmfOptionsFlag, |
|
67 &dtmfSendFlag ); |
|
68 // <-- QT PHONE END --> |
67 } |
69 } |
68 } |
70 } |
69 |
71 |
70 // ----------------------------------------------------------- |
72 // ----------------------------------------------------------- |
71 // CPhoneConferenceAndSingleAndWaiting::ConstructL() |
73 // CPhoneConferenceAndSingleAndWaiting::ConstructL() |
137 |
139 |
138 // Set specific flag to view so that DTMF menu item available |
140 // Set specific flag to view so that DTMF menu item available |
139 TPhoneCmdParamBoolean dtmfSendFlag; |
141 TPhoneCmdParamBoolean dtmfSendFlag; |
140 dtmfSendFlag.SetBoolean( ETrue ); |
142 dtmfSendFlag.SetBoolean( ETrue ); |
141 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetDtmfOptionsFlag, |
143 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetDtmfOptionsFlag, |
142 &dtmfSendFlag ); |
144 &dtmfSendFlag ); |
143 |
145 |
144 |
146 |
145 TPhoneCmdParamCallStateData callStateData; |
147 TPhoneCmdParamCallStateData callStateData; |
146 callStateData.SetCallState( EPEStateHeld ); |
148 callStateData.SetCallState( EPEStateHeld ); |
147 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
149 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
382 // Remove any phone dialogs if they are displayed |
384 // Remove any phone dialogs if they are displayed |
383 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
385 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
384 |
386 |
385 MakeTransitionAccordingToActiveCallsL(); |
387 MakeTransitionAccordingToActiveCallsL(); |
386 |
388 |
387 EndUiUpdate(); |
389 EndUiUpdate(); |
388 } |
390 } |
389 |
391 |
390 // -------------------------------------------------------------- |
392 // -------------------------------------------------------------- |
391 // CPhoneConferenceAndSingleAndWaiting::HandleKeyMessageL |
393 // CPhoneConferenceAndSingleAndWaiting::HandleKeyMessageL |
392 // -------------------------------------------------------------- |
394 // -------------------------------------------------------------- |
400 switch ( aCode ) |
402 switch ( aCode ) |
401 { |
403 { |
402 // send-key |
404 // send-key |
403 case EKeyYes: |
405 case EKeyYes: |
404 if( IsNumberEntryVisibleL() ) |
406 if( IsNumberEntryVisibleL() ) |
405 { |
407 { |
406 CallFromNumberEntryL(); |
408 CallFromNumberEntryL(); |
407 } |
409 } |
408 else |
410 else |
409 { |
411 { |
410 // Not allowed to answer |
412 // Not allowed to answer |
411 SendGlobalWarningNoteL( |
413 SendGlobalWarningNoteL( |
412 EPhoneNoteTextCallNotAllowed ); |
414 EPhoneNoteTextCallNotAllowed ); |
413 } |
415 } |
414 break; |
416 break; |
415 |
417 |
416 default: |
418 default: |
417 // do base operation |
419 // do base operation |
418 CPhoneConferenceAndSingle::HandleKeyMessageL( aMessage, aCode ); |
420 CPhoneConferenceAndSingle::HandleKeyMessageL( aMessage, aCode ); |
424 // CPhoneConferenceAndSingleAndWaiting::HandleKeyEventL |
426 // CPhoneConferenceAndSingleAndWaiting::HandleKeyEventL |
425 // ----------------------------------------------------------- |
427 // ----------------------------------------------------------- |
426 // |
428 // |
427 void CPhoneConferenceAndSingleAndWaiting::HandleKeyEventL( |
429 void CPhoneConferenceAndSingleAndWaiting::HandleKeyEventL( |
428 const TKeyEvent& aKeyEvent, |
430 const TKeyEvent& aKeyEvent, |
429 TEventCode aEventCode ) |
431 TEventCode /*aEventCode*/ ) |
430 { |
432 { |
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" ); |