phoneapp/phoneuistates/src/cphonesinglecall.cpp
branchRCL_3
changeset 39 b8d67d6176f5
parent 25 91c2fb4b78df
child 58 40a3f856b14d
equal deleted inserted replaced
34:b68fcd923911 39:b8d67d6176f5
    25 #include <mpeengineinfo.h>
    25 #include <mpeengineinfo.h>
    26 #include <cpephonemodelif.h>
    26 #include <cpephonemodelif.h>
    27 #include <connect/sbdefs.h>
    27 #include <connect/sbdefs.h>
    28 #include <videotelcontrolmediatorapi.h>
    28 #include <videotelcontrolmediatorapi.h>
    29 #include <MediatorDomainUIDs.h>
    29 #include <MediatorDomainUIDs.h>
       
    30 #include <ScreensaverInternalPSKeys.h>
    30 
    31 
    31 #include "cphonesinglecall.h"
    32 #include "cphonesinglecall.h"
    32 #include "tphonecmdparamstring.h"
    33 #include "tphonecmdparamstring.h"
    33 #include "tphonecmdparamboolean.h"
    34 #include "tphonecmdparamboolean.h"
    34 #include "tphonecmdparamcallheaderdata.h"
    35 #include "tphonecmdparamcallheaderdata.h"
   112         }
   113         }
   113 
   114 
   114     iCallId = callStateData.CallId();
   115     iCallId = callStateData.CallId();
   115     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   116     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   116 
   117 
       
   118     CPhonePubSubProxy::Instance()->ChangePropertyValue(
       
   119                     KPSUidScreenSaver,
       
   120                     KScreenSaverAllowScreenSaver,
       
   121                     EPhoneScreensaverAllowed );
   117     
   122     
   118     // Update phone number availability for menu use
   123     // Update phone number availability for menu use
   119     PhoneNumberAvailableInPhoneEngineL( callStateData.CallId() );
   124     PhoneNumberAvailableInPhoneEngineL( callStateData.CallId() );
   120 	  
   125 	  
   121     }
   126     }
   492 void CPhoneSingleCall::HandleIncomingL( TInt aCallId )
   497 void CPhoneSingleCall::HandleIncomingL( TInt aCallId )
   493     {
   498     {
   494     __LOGMETHODSTARTEND( EPhoneUIStates, 
   499     __LOGMETHODSTARTEND( EPhoneUIStates, 
   495         "CPhoneSingleCall::HandleIncomingL()");
   500         "CPhoneSingleCall::HandleIncomingL()");
   496     
   501     
       
   502     CPhonePubSubProxy::Instance()->ChangePropertyValue(
       
   503                     KPSUidScreenSaver,
       
   504                     KScreenSaverAllowScreenSaver,
       
   505                     EPhoneScreensaverNotAllowed );
       
   506     
   497     BeginUiUpdateLC();
   507     BeginUiUpdateLC();
   498     
   508     
   499     // Hide the number entry if it exists
   509     // Hide the number entry if it exists
   500     if ( IsNumberEntryUsedL() )
   510     if ( IsNumberEntryUsedL() )
   501         {
   511         {
   606 void CPhoneSingleCall::HandleDiallingL( TInt aCallId )
   616 void CPhoneSingleCall::HandleDiallingL( TInt aCallId )
   607     {
   617     {
   608     __LOGMETHODSTARTEND( EPhoneUIStates, 
   618     __LOGMETHODSTARTEND( EPhoneUIStates, 
   609         "CPhoneSingleCall::HandleDiallingL()");
   619         "CPhoneSingleCall::HandleDiallingL()");
   610     
   620     
       
   621     CPhonePubSubProxy::Instance()->ChangePropertyValue(
       
   622                     KPSUidScreenSaver,
       
   623                     KScreenSaverAllowScreenSaver,
       
   624                     EPhoneScreensaverNotAllowed );
       
   625     
   611     BeginUiUpdateLC();
   626     BeginUiUpdateLC();
   612     
   627     
   613     SetNumberEntryVisibilityL(EFalse);
   628     SetNumberEntryVisibilityL(EFalse);
   614     
   629     
   615     // Show incoming call buttons
   630     // Show incoming call buttons