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