20 #include "mpeengineinfo.h" |
20 #include "mpeengineinfo.h" |
21 #include "mphoneviewcommandhandle.h" |
21 #include "mphoneviewcommandhandle.h" |
22 #include "mphonestatemachine.h" |
22 #include "mphonestatemachine.h" |
23 |
23 |
24 #include <featmgr.h> |
24 #include <featmgr.h> |
25 // <-- QT PHONE START --> |
|
26 //#include <callhandlingui.rsg> |
|
27 // <-- QT PHONE END --> |
|
28 |
25 |
29 #include "phonerssbase.h" |
26 #include "phonerssbase.h" |
30 #include "phoneui.pan" |
27 #include "phoneui.pan" |
31 #include "phonelogger.h" |
28 #include "phonelogger.h" |
32 |
29 |
456 // |
453 // |
457 TInt CPhoneCbaManager::GetIncomingCallSilenceCBA( |
454 TInt CPhoneCbaManager::GetIncomingCallSilenceCBA( |
458 const TBool /*aSoftRejectActivated*/ ) |
455 const TBool /*aSoftRejectActivated*/ ) |
459 { |
456 { |
460 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::GetIncomingCallSilenceCBA ()" ); |
457 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::GetIncomingCallSilenceCBA ()" ); |
461 // <-- QT PHONE START --> |
|
462 TInt ret = EPhoneCallHandlingIncomingCBA; |
458 TInt ret = EPhoneCallHandlingIncomingCBA; |
463 /*TInt ret = EPhoneCallHandlingIncomingSoftRejectCBA; |
|
464 |
|
465 //Get incoming call touchpane button set |
|
466 TPhoneCmdParamInteger touchpaneButtonsParam; |
|
467 touchpaneButtonsParam.SetInteger( CPhoneMainResourceResolver::Instance()-> |
|
468 ResolveResourceID( EPhoneIncomingCallButtons ) ); |
|
469 |
|
470 if ( touchpaneButtonsParam.Integer() |
|
471 == R_PHONEUI_INCOMING_CALL_SILENCE_BUTTONS ) |
|
472 { |
|
473 aSoftRejectActivated ? |
|
474 ret = EPhoneCallHandlingIncomingSoftRejectCBA: |
|
475 ret = EPhoneCallHandlingIncomingRejectCBA; |
|
476 } |
|
477 else |
|
478 { |
|
479 // Check if the ringtone has been silenced. If it is, then show |
|
480 // "Send Message" in RSK, else show "Silence". |
|
481 iRingtoneSilenced ? |
|
482 ret = EPhoneCallHandlingIncomingSoftRejectCBA : |
|
483 ret = EPhoneCallHandlingIncomingCBA; |
|
484 } |
|
485 |
|
486 // reset the iRingtoneSilence so it won't cause any problems with |
|
487 // next calls. |
|
488 SetRingtoneSilencedStatus( EFalse );*/ |
|
489 |
|
490 // <-- QT PHONE END --> |
|
491 return ret; |
459 return ret; |
492 } |
460 } |
493 |
461 |
494 // ======== LOCAL FUNCTIONS ======== |
462 // ======== LOCAL FUNCTIONS ======== |
495 |
463 |