connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/SelectWLanDlgPlugin.cpp
branchRCL_3
changeset 57 05bc53fe583b
parent 26 0a9e01492035
child 58 83ca720e2b9a
equal deleted inserted replaced
55:fc7b30ed2058 57:05bc53fe583b
    82 void CSelectWLanDlgPlugin::StartL( const TDesC8& aBuffer, TInt aReplySlot,
    82 void CSelectWLanDlgPlugin::StartL( const TDesC8& aBuffer, TInt aReplySlot,
    83                                    const RMessagePtr2& aMessage )
    83                                    const RMessagePtr2& aMessage )
    84     {
    84     {
    85     CLOG_ENTERFN( "CSelectWLanDlgPlugin::StartL " );  
    85     CLOG_ENTERFN( "CSelectWLanDlgPlugin::StartL " );  
    86     
    86     
    87     if ( ScreenSaverOn() || AutolockOn() )
       
    88         {
       
    89         // Screen saver or Autolock is active. Cancel the dialog. 
       
    90         aMessage.Complete( KErrCancel );
       
    91         return;
       
    92         }
       
    93     
       
    94     TPckgBuf<TBool> asyncVersion;
    87     TPckgBuf<TBool> asyncVersion;
    95     asyncVersion.Copy( aBuffer );
    88     asyncVersion.Copy( aBuffer );
    96 
    89 
    97     iCancelled = EFalse;
    90     iCancelled = EFalse;
    98     
    91     
   108 
   101 
   109     if ( notesAllowed )
   102     if ( notesAllowed )
   110         {
   103         {
   111         aMessage.ReadL( aReplySlot, iNetworkPrefs );
   104         aMessage.ReadL( aReplySlot, iNetworkPrefs );
   112     
   105     
   113         TRAPD( err, iActivePlugin = CActiveSelectWLanDlgPlugin::NewL( this ) ); 
   106         TInt err( KErrNone );
       
   107         TRAP( err, iActivePlugin = CActiveSelectWLanDlgPlugin::NewL( this ) ); 
   114         if ( err )
   108         if ( err )
   115             {
   109             {
   116             delete iActivePlugin;
   110             delete iActivePlugin;
   117             iActivePlugin = NULL;
   111             iActivePlugin = NULL;
   118             iCancelled = ETrue; 
   112             iCancelled = ETrue;