phoneapp/phoneuistates/src/cphonesinglecall.cpp
branchRCL_3
changeset 5 2a26698d78ba
parent 4 24062c24fe38
child 9 91c2fb4b78df
equal deleted inserted replaced
4:24062c24fe38 5:2a26698d78ba
    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 <telephonyvariant.hrh>
       
    31 
    30 
    32 #include "cphonesinglecall.h"
    31 #include "cphonesinglecall.h"
    33 #include "tphonecmdparamstring.h"
    32 #include "tphonecmdparamstring.h"
    34 #include "tphonecmdparamboolean.h"
    33 #include "tphonecmdparamboolean.h"
    35 #include "tphonecmdparamcallheaderdata.h"
    34 #include "tphonecmdparamcallheaderdata.h"
    45 #include "phonelogger.h"
    44 #include "phonelogger.h"
    46 #include "cphonepubsubproxy.h"
    45 #include "cphonepubsubproxy.h"
    47 #include "cphonemediatorfactory.h"
    46 #include "cphonemediatorfactory.h"
    48 #include "cphonemediatorsender.h"
    47 #include "cphonemediatorsender.h"
    49 #include "cphoneswitchtovideoorvoicecommand.h"
    48 #include "cphoneswitchtovideoorvoicecommand.h"
    50 #include "mphonestorage.h"
       
    51 #include "cphonecenrepproxy.h"
       
    52 
    49 
    53 // ================= MEMBER FUNCTIONS =======================
    50 // ================= MEMBER FUNCTIONS =======================
    54 
    51 
    55 // C++ default constructor can NOT contain any code, that
    52 // C++ default constructor can NOT contain any code, that
    56 // might leave.
    53 // might leave.
   518     SetTouchPaneButtons( EPhoneWaitingCallButtons );    
   515     SetTouchPaneButtons( EPhoneWaitingCallButtons );    
   519 
   516 
   520     // Display incoming call
   517     // Display incoming call
   521     DisplayIncomingCallL( aCallId, dialerParam );
   518     DisplayIncomingCallL( aCallId, dialerParam );
   522 
   519 
   523     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
       
   524             && !CPhoneCenRepProxy::Instance()->
       
   525             IsTelephonyFeatureSupported( KTelephonyLVFlagAllowUnlockOnIncoming ) 
       
   526             && ( IsKeyLockOn() || IsAutoLockOn() ) )
       
   527         {
       
   528         DisableCallUIL();
       
   529         }
       
   530     else
       
   531         {
       
   532         // if keys have been locked, disable keylock without information note
       
   533         if ( IsKeyLockOn() )
       
   534             {
       
   535             iViewCommandHandle->ExecuteCommandL( EPhoneViewDisableKeyLockWithoutNote );
       
   536             }
       
   537         }
       
   538     
       
   539     if( CPhoneCenRepProxy::Instance()->
       
   540             IsTelephonyFeatureSupported( KTelephonyLVFlagDisableCallControlHardKeysWhileLocked ) 
       
   541             && ( IsKeyLockOn() || IsAutoLockOn() ) )
       
   542         {
       
   543         DisableHWKeysL();
       
   544         }
       
   545     
       
   546     EndUiUpdate();
   520     EndUiUpdate();
   547 
   521 
   548     // This query is required to dismiss
   522     // This query is required to dismiss
   549     // Operation cannot be completed in waiting and single state
   523     // Operation cannot be completed in waiting and single state
   550     if ( iSwitchToVideoQuery )
   524     if ( iSwitchToVideoQuery )
   570     // Close menu bar, if it is displayed
   544     // Close menu bar, if it is displayed
   571     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   545     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   572 
   546 
   573     // Remove any phone dialogs if they are displayed
   547     // Remove any phone dialogs if they are displayed
   574     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
   548     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
       
   549 
       
   550     // if keys have been locked, disable keylock without information note
       
   551     if ( IsKeyLockOn() )
       
   552         {
       
   553         iViewCommandHandle->ExecuteCommandL( EPhoneViewDisableKeyLockWithoutNote );
       
   554         }
   575     
   555     
   576     // Indicate that the Phone needs to be sent to the background if
   556     // Indicate that the Phone needs to be sent to the background if
   577     // an application other than the top application is in the foreground
   557     // an application other than the top application is in the foreground
   578     TPhoneCmdParamBoolean booleanParam;
   558     TPhoneCmdParamBoolean booleanParam;
   579     booleanParam.SetBoolean( !TopAppIsDisplayedL() );
   559     booleanParam.SetBoolean( !TopAppIsDisplayedL() );