phoneapp/phoneuicontrol/src/cphonesystemeventhandler.cpp
branchRCL_3
changeset 61 41a7f70b3818
parent 17 38529f706030
child 62 5266b1f337bd
--- a/phoneapp/phoneuicontrol/src/cphonesystemeventhandler.cpp	Thu Aug 19 09:54:27 2010 +0300
+++ b/phoneapp/phoneuicontrol/src/cphonesystemeventhandler.cpp	Tue Aug 31 15:14:29 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -22,9 +22,6 @@
 #include <UikonInternalPSKeys.h>
 #include <startupdomainpskeys.h>
 #include <hwrmdomainpskeys.h>
-#include <oem/simlockuikeys.h>
-#include <featmgr.h>
-#include <coreapplicationuisdomainpskeys.h>
 
 #include "cphonesystemeventhandler.h"
 #include "mphonestate.h"
@@ -90,13 +87,6 @@
         KPSUidStartup,
         KStartupSimSecurityStatus,
         this );
-    
-    // Set up notifications for autolock state changes.
-    CPhonePubSubProxy::Instance()->NotifyChangeL(
-    	KPSUidCoreApplicationUIs,
-    	KCoreAppUIsAutolockStatus,
-    	this );
-    
 
     if ( CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported(
             KTelephonyLVFlagSwivelInDevice ))
@@ -107,24 +97,6 @@
             KHWRMGripStatus,
             this );
         }
-    
-    if ( FeatureManager::FeatureSupported( KFeatureIdFfSimlockUi ) )
-       {
-        //Set up notifications for Sim Lock Dialogs values.
-        CPhonePubSubProxy::Instance()->NotifyChangeL(
-            KSimLockProperty,
-            ESimLockActiveStatus,
-            this );
-       }
-
-    if ( FeatureManager::FeatureSupported( KFeatureIdFfEntryPointForVideoShare ) )
-        {
-        // Set up notifications for Video Share (un)availability
-        CPhonePubSubProxy::Instance()->NotifyChangeL(
-            KPSUidCoreApplicationUIs,
-            KCoreAppUIsVideoSharingIndicator,
-            this );
-        }
     }
 
 // ---------------------------------------------------------
@@ -138,28 +110,6 @@
     }
 
 // ---------------------------------------------------------
-// CPhoneSystemEventHandler::DynInitMenuPaneL
-// ---------------------------------------------------------
-//
-void CPhoneSystemEventHandler::DynInitMenuPaneL(
-    TInt aResourceId,
-    CEikMenuPane* aMenuPane )
-    {
-    iStateMachine->State()->DynInitMenuPaneL( aResourceId, aMenuPane );
-    }
-
-// ---------------------------------------------------------
-// CPhoneSystemEventHandler::DynInitMenuBarL
-// ---------------------------------------------------------
-//
-void CPhoneSystemEventHandler::DynInitMenuBarL(
-    TInt aResourceId,
-    CEikMenuBar* aMenuBar )
-    {
-    iStateMachine->State()->DynInitMenuBarL( aResourceId, aMenuBar );
-    }
-
-// ---------------------------------------------------------
 // CPhoneSystemEventHandler::HandleSystemEventL
 // ---------------------------------------------------------
 //
@@ -203,6 +153,15 @@
     iStateMachine->State()->HandleIdleForegroundEventL();
     }
 
+// ---------------------------------------------------------
+// CPhoneSystemEventHandler::HandleKeyLockEnabled
+// ---------------------------------------------------------
+//
+void CPhoneSystemEventHandler::HandleKeyLockEnabled( TBool aKeylockEnabled )
+    {
+    iStateMachine->State()->HandleKeyLockEnabled( aKeylockEnabled );
+    }
+
 // -----------------------------------------------------------
 // CPhoneSystemEventHandler::HandleEnvironmentChangeL
 // -----------------------------------------------------------
@@ -230,7 +189,7 @@
     const TUint aKey,
     const TInt aValue )
     {
-    iStateMachine->HandlePropertyChangedL( aCategory, aKey, aValue );
+    iStateMachine->State()->HandlePropertyChangedL( aCategory, aKey, aValue );
     }
 
 // -----------------------------------------------------------