phoneapp/phoneuicontrol/src/cphonestateincoming.cpp
branchRCL_3
changeset 15 2a26698d78ba
parent 14 24062c24fe38
child 17 38529f706030
equal deleted inserted replaced
14:24062c24fe38 15:2a26698d78ba
    52 #include "tphonecmdparamquery.h"
    52 #include "tphonecmdparamquery.h"
    53 #include "cphonemediatorfactory.h"
    53 #include "cphonemediatorfactory.h"
    54 #include "cphonemediatorsender.h"
    54 #include "cphonemediatorsender.h"
    55 #include "cphonereleasecommand.h"
    55 #include "cphonereleasecommand.h"
    56 #include "mphonecustomization.h"
    56 #include "mphonecustomization.h"
    57 #include "mphonestorage.h"
       
    58 
    57 
    59 // ================= MEMBER FUNCTIONS =======================
    58 // ================= MEMBER FUNCTIONS =======================
    60 
    59 
    61 // C++ default constructor can NOT contain any code, that
    60 // C++ default constructor can NOT contain any code, that
    62 // might leave.
    61 // might leave.
   226                 // Open number entry OK menubar
   225                 // Open number entry OK menubar
   227                 OpenMenuBarL();
   226                 OpenMenuBarL();
   228                 }
   227                 }
   229             break;
   228             break;
   230 
   229 
   231         case EKeyDeviceF:
       
   232                 {
       
   233                 __PHONELOG( EBasic, EPhoneUIStates,
       
   234                     "CPhoneConferenceAndSingleAndWaiting::HandleKeyMessageL-deviceF" );
       
   235                 HandleHoldSwitchL();
       
   236                 }
       
   237             break;
       
   238             
       
   239         default:
   230         default:
   240             break;
   231             break;
   241         }
   232         }
   242     }
   233     }
   243 
   234 
   381     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   372     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   382     
   373     
   383     
   374     
   384     BeginTransEffectLC( ENumberEntryOpen );
   375     BeginTransEffectLC( ENumberEntryOpen );
   385 
   376 
   386     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
       
   387          && iStateMachine->PhoneStorage()->IsScreenLocked() )
       
   388         {
       
   389         EnableCallUIL();
       
   390         }
       
   391     
       
   392     // Reset blocked keys list
       
   393     iStateMachine->PhoneStorage()->ResetBlockedKeysList();
       
   394 
       
   395     BeginUiUpdateLC();
   377     BeginUiUpdateLC();
   396     
   378     
   397     // Update single call
   379     // Update single call
   398     UpdateSingleActiveCallL( aCallId );
   380     UpdateSingleActiveCallL( aCallId );
   399 
   381 
   448         "CPhoneStateIncoming::HandleIdleL ()" );
   430         "CPhoneStateIncoming::HandleIdleL ()" );
   449 
   431 
   450     BeginTransEffectLC( ENumberEntryOpen );
   432     BeginTransEffectLC( ENumberEntryOpen );
   451     BeginUiUpdateLC();
   433     BeginUiUpdateLC();
   452 
   434 
   453     // Enable call UI
       
   454     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
       
   455         && iStateMachine->PhoneStorage()->IsScreenLocked() )
       
   456         {
       
   457         EnableCallUIL();
       
   458         }
       
   459 
       
   460     // Reset blocked keys list
       
   461     iStateMachine->PhoneStorage()->ResetBlockedKeysList();
       
   462     
       
   463     // Remove call
   435     // Remove call
   464     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   436     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   465     // Close menu bar, if it is displayed
   437     // Close menu bar, if it is displayed
   466     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   438     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   467     // Stop tone playing, if necessary
   439     // Stop tone playing, if necessary
   863 
   835 
   864     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId,
   836     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId,
   865         &callHeaderParam );
   837         &callHeaderParam );
   866     }
   838     }
   867 
   839 
   868 // ---------------------------------------------------------
       
   869 // CPhoneStateIncoming::HandleKeyLockEnabledL
       
   870 // ---------------------------------------------------------
       
   871 //
       
   872 EXPORT_C void CPhoneStateIncoming::HandleKeyLockEnabled( TBool aKeylockEnabled )
       
   873     {
       
   874     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateIncoming::HandleKeyLockEnabledL( ) ");
       
   875     if( !FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke )
       
   876 		&& CPhoneCenRepProxy::Instance()->
       
   877 			IsTelephonyFeatureSupported( KTelephonyLVFlagDisableCallControlHardKeysWhileLocked ) )
       
   878 		{
       
   879     	if( aKeylockEnabled )
       
   880         	{
       
   881 	        // Keylock enabled
       
   882             if( iStateMachine->PhoneStorage()->IsBlockedKeysListEmpty() )
       
   883                 {
       
   884                 // Disable HW Keys if needed
       
   885                 DisableHWKeysL();
       
   886                 }
       
   887 	        }
       
   888 	    else
       
   889 	        {
       
   890 	        // Keylock disabled
       
   891             // Reset blocked keys list
       
   892             iStateMachine->PhoneStorage()->ResetBlockedKeysList();
       
   893 	        }
       
   894 		}
       
   895     }
       
   896 
       
   897 // End of File
   840 // End of File