connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopupnotif.cpp
branchRCL_3
changeset 36 04408506c6e0
parent 8 2e6c4614c58e
--- a/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopupnotif.cpp	Tue May 25 13:08:02 2010 +0300
+++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopupnotif.cpp	Wed Jun 09 10:07:12 2010 +0300
@@ -16,6 +16,8 @@
  */
 
 // INCLUDE FILES
+#include <e32property.h>
+#include <ScreensaverInternalPSKeys.h>
 #include "connectingviadiscreetpopupnotif.h"
 #include "connectingviadiscreetpopup.h"
 #include "ConnUiUtilsNotif.h"
@@ -44,10 +46,15 @@
 //
 void CConnectingViaDiscreetPopupNotif::StartL(const TDesC8& aBuffer,
         TInt aReplySlot, const RMessagePtr2& aMessage)
-    {
-    if ( iActiveNote )
+    {    
+    TInt screenSaverOn( 0 );
+    RProperty::Get( KPSUidScreenSaver, 
+                    KScreenSaverOn, 
+                    screenSaverOn );
+
+    if ( iActiveNote || screenSaverOn > 0 )
         {
-        // Note is already active
+        // Note is already active or Screensaver is on.
         aMessage.Complete( KErrNone );
         return;
         }