connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/EasyWepDlgNotif.cpp
branchRCL_3
changeset 24 05bc53fe583b
parent 17 0a9e01492035
child 25 83ca720e2b9a
equal deleted inserted replaced
23:fc7b30ed2058 24:05bc53fe583b
    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     
       
    59     iReplySlot = aReplySlot;
    52     iReplySlot = aReplySlot;
    60     iMessage = aMessage;
    53     iMessage = aMessage;
    61     iCancelled = EFalse;
    54     iCancelled = EFalse;
    62 
    55 
    63     aMessage.ReadL( aReplySlot, iKey );
    56     aMessage.ReadL( aReplySlot, iKey );