connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/nowlannetworksavailablenotif.cpp
equal
deleted
inserted
replaced
14 * Description: Implementation of CNoWLANNetworksAvailableNotif. |
14 * Description: Implementation of CNoWLANNetworksAvailableNotif. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
|
19 #include <e32property.h> |
|
20 #include <ScreensaverInternalPSKeys.h> |
19 #include "ConnectionDialogsUidDefs.h" |
21 #include "ConnectionDialogsUidDefs.h" |
20 #include "nowlannetworksavailablenotif.h" |
22 #include "nowlannetworksavailablenotif.h" |
21 #include "nowlansdiscreetpopup.h" |
23 #include "nowlansdiscreetpopup.h" |
22 #include "ConnUiUtilsNotif.h" |
24 #include "ConnUiUtilsNotif.h" |
23 |
25 |
46 // |
48 // |
47 void CNoWLANNetworksAvailableNotif::StartL( const TDesC8& /*aBuffer*/, |
49 void CNoWLANNetworksAvailableNotif::StartL( const TDesC8& /*aBuffer*/, |
48 TInt aReplySlot, |
50 TInt aReplySlot, |
49 const RMessagePtr2& aMessage ) |
51 const RMessagePtr2& aMessage ) |
50 { |
52 { |
51 if ( iActiveNote ) |
53 TInt screenSaverOn( 0 ); |
|
54 RProperty::Get( KPSUidScreenSaver, |
|
55 KScreenSaverOn, |
|
56 screenSaverOn ); |
|
57 |
|
58 if ( iActiveNote || screenSaverOn > 0 ) |
52 { |
59 { |
53 // Note is already active |
60 // Note is already active or Screensaver is on. |
54 aMessage.Complete( KErrNone ); |
61 aMessage.Complete( KErrNone ); |
55 return; |
62 return; |
56 } |
63 } |
57 |
64 |
58 iReplySlot = aReplySlot; |
65 iReplySlot = aReplySlot; |