connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopupnotif.cpp
branchRCL_3
changeset 18 04408506c6e0
parent 8 2e6c4614c58e
equal deleted inserted replaced
17:0a9e01492035 18:04408506c6e0
    14  * Description:  Implementation of CConnectingViaDiscreetPopupNotif.
    14  * Description:  Implementation of CConnectingViaDiscreetPopupNotif.
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
       
    19 #include <e32property.h>
       
    20 #include <ScreensaverInternalPSKeys.h>
    19 #include "connectingviadiscreetpopupnotif.h"
    21 #include "connectingviadiscreetpopupnotif.h"
    20 #include "connectingviadiscreetpopup.h"
    22 #include "connectingviadiscreetpopup.h"
    21 #include "ConnUiUtilsNotif.h"
    23 #include "ConnUiUtilsNotif.h"
    22 #include "ConnectionDialogsUidDefs.h"
    24 #include "ConnectionDialogsUidDefs.h"
    23 #include "ConnectionUiUtilitiesCommon.h"
    25 #include "ConnectionUiUtilitiesCommon.h"
    42 // void CConnectingViaDiscreetPopupNotif::StartL()
    44 // void CConnectingViaDiscreetPopupNotif::StartL()
    43 // ---------------------------------------------------------
    45 // ---------------------------------------------------------
    44 //
    46 //
    45 void CConnectingViaDiscreetPopupNotif::StartL(const TDesC8& aBuffer,
    47 void CConnectingViaDiscreetPopupNotif::StartL(const TDesC8& aBuffer,
    46         TInt aReplySlot, const RMessagePtr2& aMessage)
    48         TInt aReplySlot, const RMessagePtr2& aMessage)
    47     {
    49     {    
    48     if ( iActiveNote )
    50     TInt screenSaverOn( 0 );
       
    51     RProperty::Get( KPSUidScreenSaver, 
       
    52                     KScreenSaverOn, 
       
    53                     screenSaverOn );
       
    54 
       
    55     if ( iActiveNote || screenSaverOn > 0 )
    49         {
    56         {
    50         // Note is already active
    57         // Note is already active or Screensaver is on.
    51         aMessage.Complete( KErrNone );
    58         aMessage.Complete( KErrNone );
    52         return;
    59         return;
    53         }
    60         }
    54     
    61     
    55     iReplySlot = aReplySlot;
    62     iReplySlot = aReplySlot;