connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/EasyWepDlgNotif.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "EasyWepDlgNotif.h"
    20 #include "EasyWepDlgNotif.h"
    21 #include "WepWpaQueryDlg.h"
    21 #include "WepWpaQueryDlg.h"
    22 #include "ConnUiUtilsNotif.h"
    22 #include "ConnUiUtilsNotif.h"
    23 
    23 
    24 #include <connuiutilsnotif.rsg>
    24 #include <ConnUiUtilsNotif.rsg>
    25 #include <StringLoader.h>
    25 #include <StringLoader.h>
    26 #include <featmgr.h>
    26 #include <featmgr.h>
    27 
    27 
    28 
    28 
    29 // ================= MEMBER FUNCTIONS =======================
    29 // ================= MEMBER FUNCTIONS =======================
    47 //
    47 //
    48 void CEasyWepDlgNotif::StartL( const TDesC8& /*aBuffer*/, 
    48 void CEasyWepDlgNotif::StartL( const TDesC8& /*aBuffer*/, 
    49                                     TInt aReplySlot,
    49                                     TInt aReplySlot,
    50                                     const RMessagePtr2& aMessage )
    50                                     const RMessagePtr2& aMessage )
    51     {
    51     {
       
    52     if ( ScreenSaverOn() || AutolockOn() )
       
    53         {
       
    54         // Screen saver or Autolock is active. Cancel the dialog.
       
    55         aMessage.Complete( KErrCancel );
       
    56         return;
       
    57         }
       
    58     
    52     iReplySlot = aReplySlot;
    59     iReplySlot = aReplySlot;
    53     iMessage = aMessage;
    60     iMessage = aMessage;
    54     iCancelled = EFalse;
    61     iCancelled = EFalse;
    55 
    62 
    56     aMessage.ReadL( aReplySlot, iKey );
    63     aMessage.ReadL( aReplySlot, iKey );