diff -r c45d4fe2ff0a -r 0a9e01492035 connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp --- a/connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp Tue May 11 16:35:05 2010 +0300 +++ b/connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp Tue May 25 13:08:02 2010 +0300 @@ -18,12 +18,14 @@ // INCLUDE FILES -#include "ConnectionDialogsNotifBase.h" - +#include +#include +#include #include #include #include +#include "ConnectionDialogsNotifBase.h" // CONSTANTS @@ -130,6 +132,43 @@ } } +// --------------------------------------------------------- +// CConnectionDialogsNotifBase::ScreenSaverOn() +// --------------------------------------------------------- +// +TBool CConnectionDialogsNotifBase::ScreenSaverOn() + { + TInt err( KErrNone ); + TInt screenSaverOn( 0 ); + + // Cancel the dialog if screen saver is on. + err = RProperty::Get( KPSUidScreenSaver, + KScreenSaverOn, + screenSaverOn ); + + return (err == KErrNone && screenSaverOn > 0); + } + +// --------------------------------------------------------- +// CConnectionDialogsNotifBase::AutolockOn() +// --------------------------------------------------------- +// +TBool CConnectionDialogsNotifBase::AutolockOn() + { + TBool retval( EFalse ); + +#ifdef RD_STARTUP_CHANGE + TInt err( KErrNone ); + TInt autolockOn( 0 ); + // Cancel the dialog if screen saver is on. + err = RProperty::Get( KPSUidCoreApplicationUIs, + KCoreAppUIsAutolockStatus, + autolockOn ); + retval = (err == KErrNone && autolockOn > EAutolockOff); +#endif + + return retval; + } // End of File