connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectingviadiscreetpopupnotif.cpp
equal
deleted
inserted
replaced
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; |