connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectionerrordiscreetpopupnotif.cpp
branchRCL_3
changeset 36 04408506c6e0
parent 0 5a93021fdf25
equal deleted inserted replaced
26:0a9e01492035 36:04408506c6e0
    14  * Description:  Implementation of CConnectionErrorDiscreetPopupNotif.
    14  * Description:  Implementation of CConnectionErrorDiscreetPopupNotif.
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
       
    19 #include <e32property.h>
       
    20 #include <ScreensaverInternalPSKeys.h>
    19 #include "connectionerrordiscreetpopupnotif.h"
    21 #include "connectionerrordiscreetpopupnotif.h"
    20 #include "connectionerrordiscreetpopup.h"
    22 #include "connectionerrordiscreetpopup.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"
    44 // ---------------------------------------------------------
    46 // ---------------------------------------------------------
    45 //
    47 //
    46 void CConnectionErrorDiscreetPopupNotif::StartL( const TDesC8& aBuffer,
    48 void CConnectionErrorDiscreetPopupNotif::StartL( const TDesC8& aBuffer,
    47         TInt aReplySlot, const RMessagePtr2& aMessage )
    49         TInt aReplySlot, const RMessagePtr2& aMessage )
    48     {
    50     {
    49     if ( iActiveNote )
    51     TInt screenSaverOn( 0 );
       
    52     RProperty::Get( KPSUidScreenSaver, 
       
    53                     KScreenSaverOn, 
       
    54                     screenSaverOn );
       
    55 
       
    56     if ( iActiveNote || screenSaverOn > 0 )
    50         {
    57         {
    51         // Note is already active
    58         // Note is already active or Screensaver is on.
    52         aMessage.Complete( KErrNone );
    59         aMessage.Complete( KErrNone );
    53         return;
    60         return;
    54         }
    61         }
    55     iReplySlot = aReplySlot;
    62     iReplySlot = aReplySlot;
    56     iMessage = aMessage;
    63     iMessage = aMessage;