1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/ssm/ssmstates.hrh Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,53 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __SSMSTATES_HRH__
1.20 +#define __SSMSTATES_HRH__
1.21 +
1.22 +#include <e32def.h>
1.23 +
1.24 +/**
1.25 + Enumeration of the main system states for the System State Manager
1.26 +
1.27 + @see TSsmState
1.28 +
1.29 + @publishedPartner
1.30 + @released
1.31 +
1.32 + The total value of the state can occupy a maximum of the lower 24 bits of a TUint32.
1.33 + This has been divided into 8 bits (0-0xff for TSsmMainSystemStates, 16 bits (0-0xffff) for KSsmAnyMinorState
1.34 +*/
1.35 +enum TSsmMainSystemStates
1.36 + {
1.37 + ESsmStartup = 0, // This must be 0 for compatibility with existing GSA components
1.38 + ESsmNormal,
1.39 + ESsmShutdown,
1.40 + ESsmFail,
1.41 + ESsmBackup,
1.42 + ESsmRestore,
1.43 + ESsmEmergencyCallsOnly,
1.44 + /** Main states are 16 bits, but 8 bits are reserved for internal use, so allowed values range is until 0xFF */
1.45 + ESsmMainSystemStateMax = 0xFF
1.46 + };
1.47 +
1.48 +/**
1.49 + Represents any sub state, used for transitioning to policies where you don't know (or care)
1.50 + about the sub state.
1.51 + @publishedPartner
1.52 +@released
1.53 + */
1.54 +const TUint16 KSsmAnySubState = 0xFFFF;
1.55 +
1.56 +#endif //__SSMSTATES_HRH__