idlefw/src/framework/aifw.cpp
branchRCL_3
changeset 15 a0713522ab97
parent 11 bd874ee5e5e2
child 19 edd621764147
--- a/idlefw/src/framework/aifw.cpp	Wed Mar 31 22:04:35 2010 +0300
+++ b/idlefw/src/framework/aifw.cpp	Wed Apr 14 16:16:44 2010 +0300
@@ -32,7 +32,6 @@
 
 #include <activeidle2domaincrkeys.h>
 #include <activeidle2domainpskeys.h>
-#include <activeidle2internalpskeys.h>
 #include <aipspropertyobserver.h>
 #include <aisystemuids.hrh>
 
@@ -155,9 +154,6 @@
 
     delete iNotifyHandlerESS;
     iNotifyHandlerESS = NULL;
-   
-    Release( iIdleRestartObserver );
-    iIdleRestartObserver = NULL;
         
     delete iWsPluginManager;
     iWsPluginManager = NULL;
@@ -243,10 +239,6 @@
          CCenRepNotifyHandler::EIntKey, KAIExternalStatusScreen );
                                                      
     iNotifyHandlerESS->StartListeningL();
-
-    iIdleRestartObserver = AiUtility::CreatePSPropertyObserverL(
-        TCallBack( HandleRestartEvent, this ), 
-        KPSUidAiInformation, KActiveIdleRestartAI2 );
     
     __PRINTS( "*** CAiFw::AppEnvReadyL - done" );
     }
@@ -342,9 +334,6 @@
         delete iWsPluginManager;
         iWsPluginManager = NULL;
         
-        Release( iIdleRestartObserver );
-        iIdleRestartObserver = NULL;
-        
         iStateProvider->Stop();
         }
     }
@@ -498,30 +487,6 @@
     }
 
 // ----------------------------------------------------------------------------
-// CAiFw::HandleRestartEvent()
-//
-// ----------------------------------------------------------------------------
-//
-TInt CAiFw::HandleRestartEvent( TAny* aSelf )
-    {
-    CAiFw* self = static_cast<CAiFw*>( aSelf );
-    
-    TInt value( 0 );
-    
-    if ( self->iIdleRestartObserver )
-        {
-        TInt err( self->iIdleRestartObserver->Get( value ) );
-
-        if ( err == KErrNone && value == KActiveIdleRestartCode )
-            {
-            self->iUiControllerManager->ExitMainController();
-            }
-        }
-    
-    return KErrNone;
-    }
-
-// ----------------------------------------------------------------------------
 // CAiFw::Repository()
 //
 // ----------------------------------------------------------------------------