phoneapp/phoneuiview/src/cphonedialercontroller.cpp
branchRCL_3
changeset 6 38529f706030
parent 4 24062c24fe38
child 9 91c2fb4b78df
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
   357     TBool dimmed = EFalse;
   357     TBool dimmed = EFalse;
   358     // Figure out correct state for each key
   358     // Figure out correct state for each key
   359     switch ( aIndex )
   359     switch ( aIndex )
   360         {
   360         {
   361         case ECallButton:
   361         case ECallButton:
   362             dimmed = iRestrictedDialer;
   362 			{
   363             if ( !dimmed )
   363         	if ( iNumberAvailable )
   364                 {
   364         		{
   365                 // Prevent calling but don't prevent log during emergency call
   365         		// Dim send key if emergency call is active. 
   366                 dimmed = ( iNumberAvailable && EmergencyCallActive() );
   366         		// Do not dim send key if emergency call is not active,
   367                 }
   367         		// user must be able to make an emergency call whether 
   368             break;
   368         		// security mode is enabled or disabled.
       
   369         		dimmed = EmergencyCallActive();
       
   370         		}
       
   371         	else
       
   372         		{
       
   373         		// If there's no number available in dialer, we should dim
       
   374         		// send key if security mode is enabled.
       
   375         		// User cannot launch logs application.
       
   376         		dimmed = iRestrictedDialer;
       
   377         		}
       
   378 			}
       
   379         	break;
       
   380             
   369         case EPhonebookButton:
   381         case EPhonebookButton:
   370             dimmed = iRestrictedDialer;
   382             dimmed = iRestrictedDialer;
   371             break;
   383             break;
   372         case EClearButton:
   384         case EClearButton:
   373             dimmed = !iNumberAvailable;
   385             dimmed = !iNumberAvailable;