watchdog/src/wdselfshutdownobserver.cpp
changeset 60 79f826a55db2
parent 20 6dfc5f825351
equal deleted inserted replaced
58:fe894bb075c2 60:79f826a55db2
    56 void CWDSelfShutdownObserver::ConstructL()
    56 void CWDSelfShutdownObserver::ConstructL()
    57     {
    57     {
    58     PRINT(_L("CWDSelfShutdownObserver::ConstructL()"));
    58     PRINT(_L("CWDSelfShutdownObserver::ConstructL()"));
    59     
    59     
    60     TInt error = RProperty::Define(KWatchdogPSShutdown, KShutdown,RProperty::EInt,KAllowAllPolicy,KPowerMgmtPolicy);
    60     TInt error = RProperty::Define(KWatchdogPSShutdown, KShutdown,RProperty::EInt,KAllowAllPolicy,KPowerMgmtPolicy);
    61     RProperty::Set(KWatchdogPSShutdown,KShutdown,0);
       
    62 
    61 
    63     // attach to the property    
    62     // attach to the property    
    64     User::LeaveIfError( iProperty.Attach(KWatchdogPSShutdown,KShutdown,EOwnerThread) );
    63     User::LeaveIfError( iProperty.Attach(KWatchdogPSShutdown,KShutdown,EOwnerThread) );
    65     
    64     
    66     CActiveScheduler::Add( this );
    65     CActiveScheduler::Add( this );