diff -r fc7b30ed2058 -r 05bc53fe583b connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp --- a/connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp Thu Aug 19 10:18:49 2010 +0300 +++ b/connectionutilities/ConnectionDialogs/src/ConnectionDialogsNotifBase.cpp Tue Aug 31 15:35:44 2010 +0300 @@ -18,19 +18,12 @@ // INCLUDE FILES -#include -#include -#include +#include "ConnectionDialogsNotifBase.h" + #include #include #include -#include "ConnectionDialogsLogger.h" -#include "ConnectionDialogsNotifBase.h" - -#ifdef _DEBUG -#include -#endif // CONSTANTS @@ -95,9 +88,13 @@ // --------------------------------------------------------- // CConnectionDialogsNotifBase::CConnectionDialogsNotifBase() -: iCancelled( EFalse ), +: iReplySlot( 0 ), + iCancelled( EFalse ), iResource( 0 ) { + iInfo.iUid = TUid::Null(); + iInfo.iChannel = TUid::Null(); + iInfo.iPriority = 0; } @@ -137,55 +134,6 @@ } } -// --------------------------------------------------------- -// 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 ); - - CLOG_ENTERFN( "CConnectionDialogsNotifBase::AutolockOn" ); - -#ifdef RD_STARTUP_CHANGE - TInt err( KErrNone ); - TInt autolockOn( 0 ); - // Cancel the dialog if screen saver is on. - err = RProperty::Get( KPSUidCoreApplicationUIs, - KCoreAppUIsAutolockStatus, - autolockOn ); - // In boot there may come EAutolockStatusUninitialized, when it should be EAutolockOn... - retval = (err == KErrNone && autolockOn != EAutolockOff); - -#ifdef _DEBUG - RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: autolockOn: %d"), autolockOn ); - RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: err: %d"), err ); - RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: %d"), retval ); -#endif - -#endif // RD_STARTUP_CHANGE - - CLOG_LEAVEFN( "CConnectionDialogsNotifBase::AutolockOn" ); - - return retval; - } // End of File