uifw/AvKon/animdllsrc/AknAnimKeySound.cpp
changeset 33 b3425bf29f82
parent 21 558113899881
--- a/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp	Mon May 03 12:45:33 2010 +0300
+++ b/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp	Wed Jun 23 05:40:10 2010 +0800
@@ -32,7 +32,7 @@
 
 // This is currently nasty set dependencies, API should be moved to middleware layer asap 
 #include <ctsydomainpskeys.h> 
-#include <activeidle2domainpskeys.h>
+
 #include <networkhandlingdomainpskeys.h>
 #include <PSVariables.h>
 
@@ -525,7 +525,6 @@
 
         // If system is not in idle or there are calls ongoing, then end key ought to be generated.
         User::LeaveIfError( RProperty::Get( KPSUidCtsyCallInformation, KCTsyCallState, ps ) );
-        User::LeaveIfError( RProperty::Get( KPSUidAiInformation, KActiveIdleState, idle ) );
         User::LeaveIfError( RProperty::Get( KPSUidUikon, KUikGlobalNotesAllowed, startupOk ) );
 
         RDebug::Print(_L("call: %d, idle %d, notes %d"), ps, idle, startupOk);
@@ -536,23 +535,11 @@
             {
             return;
             }
-        
-        if ( idle == EPSAiForeground )
-            { 
-            // Notify active idle plugins that combined end key / power key has been pressed.
-            RProperty::Set(KPSUidAvkonDomain, KAknEndKeyEvent, 1); 
-            }
-        
         if ( ps != EPSCTsyCallStateNone )
             {
             // A phone call is active.
             aResult = EEmulateNowPhoneCallActive;
             }
-        else if ( idle != EPSAiForeground )
-            {
-            // We are not in idle view. No active phone calls.
-            aResult = EEmulateNow;
-            }
         else
             {
             // We are in idle view with no active phone calls.