idlefw/src/framework/aistatesuspended.cpp
branchRCL_3
changeset 9 d0529222e3f0
parent 4 1a2a00e78665
child 10 5ef93ea513cb
child 18 bd874ee5e5e2
--- a/idlefw/src/framework/aistatesuspended.cpp	Tue Feb 02 00:23:10 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-/*
-* Copyright (c) 2005-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"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  State class for suspended state
-*
-*/
-
-
-#include "aistatesuspended.h"
-#include "aipluginstatemachine.h"
-#include "debug.h"
-
-// ======== MEMBER FUNCTIONS ========
-
-// ----------------------------------------------------------------------------
-// TAiStateSuspended::TAiStateSuspended()
-// ----------------------------------------------------------------------------
-//
-TAiStateSuspended::TAiStateSuspended()
-    {
-    }
-
-// ----------------------------------------------------------------------------
-// TAiStateSuspended::Enter()
-// ----------------------------------------------------------------------------
-//
-void TAiStateSuspended::Enter( MAiPluginStateMachine& aStateMachine,
-    TAiStateChanges aStateChange )
-    {
-    __PRINTS( "XAI: Enter Suspended" );
-    const TAiTransitionReason reason( 
-            aStateMachine.TranslateReason( aStateChange ) );
-
-    aStateMachine.ChangePluginState( reason, &CAiContentPublisher::Suspend );                                    
-    }
-    
-// ----------------------------------------------------------------------------
-// TAiStateSuspended::HandleEvent()
-// ----------------------------------------------------------------------------
-//
-TBool TAiStateSuspended::HandleEvent( MAiPluginStateMachine& aStateMachine,
-    TAiStateChanges aStateChange )
-    {
-    __PRINTS( "XAI: Suspended handle event" );
-    switch( aStateChange )
-        {
-        case ESMAIIdleForeground:
-        case ESMAIBacklightOn:
-        case ESMAILocaleChanged:
-        case ESMAITimeChanged:
-        case ESMAIMidnightCrossover:
-        case ESMAIRelayoutScreen:
-        case ESMAIGeneralThemeChanged:
-        case ESMAIInCall: // fallthrough
-            {
-            aStateMachine.SwitchToState( EAiAlive, aStateChange );
-            return ETrue;
-            }
-        case ESMAIKeylockEnabled:
-        case ESMAIKeylockDisabled:
-            {
-            Enter( aStateMachine, aStateChange );
-            return ETrue;
-            }
-        default:
-            {
-            return EFalse;
-            }
-        }
-    }
-
-// ----------------------------------------------------------------------------
-// TAiStateSuspended::Exit()
-// ----------------------------------------------------------------------------
-//
-void TAiStateSuspended::Exit( MAiPluginStateMachine& /*aStateMachine*/,
-    TAiStateChanges /*aStateChange*/ )
-    {
-    __PRINTS( "XAI: Exit Suspended" );
-    }
-