connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/ConfirmationQueryNotif.cpp
branchRCL_3
changeset 26 0a9e01492035
parent 8 2e6c4614c58e
child 54 984e13af52c4
equal deleted inserted replaced
24:c45d4fe2ff0a 26:0a9e01492035
   107            aMessage.Complete( KErrServerBusy );
   107            aMessage.Complete( KErrServerBusy );
   108            return;
   108            return;
   109            }    
   109            }    
   110         }
   110         }
   111     
   111     
       
   112     TInt err( KErrNone );
       
   113     TInt emergencyCallState( 0 );
       
   114     
   112     // Check if emergency call is ongoing. If it is then do not display the dialog.    
   115     // Check if emergency call is ongoing. If it is then do not display the dialog.    
   113     TInt err( KErrNone );
   116     err = RProperty::Get( KPSUidCtsyEmergencyCallInfo,
   114     TInt state( 0 );
       
   115 
       
   116     err = RProperty::Get(
       
   117             KPSUidCtsyEmergencyCallInfo,
       
   118             KCTSYEmergencyCallInfo,
   117             KCTSYEmergencyCallInfo,
   119             state );
   118             emergencyCallState );
   120     
   119 
   121     if ( err == KErrNone && state )
   120     if ( (err == KErrNone && emergencyCallState) || ScreenSaverOn() || AutolockOn() )
   122         {
   121         {
   123         // Emergency call is active. Cancel connection. 
   122         // Emergency call, screen saver or autolock is active. Cancel the dialog. 
   124         CLOG_WRITE( "CConfirmationQueryNotif::StartL: Emergency call is active!" );
   123         CLOG_WRITE( "CConfirmationQueryNotif::StartL: Emergency call, Screen saver or Autolock is active." );
   125         aMessage.WriteL( aReplySlot, TPckg<TMsgQueryLinkedResults>( EMsgQueryCancelled ) );
   124         aMessage.WriteL( aReplySlot, TPckg<TMsgQueryLinkedResults>( EMsgQueryCancelled ) );
   126         aMessage.Complete( KErrNone );
   125         aMessage.Complete( KErrNone );
   127         return;
   126         return;
   128         }
   127         }
   129     
   128 
   130     iChoice = EMsgQueryCancelled; 
   129     iChoice = EMsgQueryCancelled; 
   131     TPckgBuf<TConnUiUiDestConnMethodNoteId> input;
   130     TPckgBuf<TConnUiUiDestConnMethodNoteId> input;
   132     input.Copy( aBuffer );
   131     input.Copy( aBuffer );
   133     iNoteInfo = input();
   132     iNoteInfo = input();
   134     
   133