williamr@4: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: // All rights reserved. williamr@4: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@4: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: // williamr@4: // Initial Contributors: williamr@4: // Nokia Corporation - initial contribution. williamr@4: // williamr@4: // Contributors: williamr@4: // williamr@4: // Description: williamr@4: // williamr@4: williamr@4: #ifndef __SSMSTATES_HRH__ williamr@4: #define __SSMSTATES_HRH__ williamr@4: williamr@4: #include williamr@4: williamr@4: /** williamr@4: Enumeration of the main system states for the System State Manager williamr@4: williamr@4: @see TSsmState williamr@4: williamr@4: @publishedPartner williamr@4: @released williamr@4: williamr@4: The total value of the state can occupy a maximum of the lower 24 bits of a TUint32. williamr@4: This has been divided into 8 bits (0-0xff for TSsmMainSystemStates, 16 bits (0-0xffff) for KSsmAnyMinorState williamr@4: */ williamr@4: enum TSsmMainSystemStates williamr@4: { williamr@4: ESsmStartup = 0, // This must be 0 for compatibility with existing GSA components williamr@4: ESsmNormal, williamr@4: ESsmShutdown, williamr@4: ESsmFail, williamr@4: ESsmBackup, williamr@4: ESsmRestore, williamr@4: ESsmEmergencyCallsOnly, williamr@4: /** Main states are 16 bits, but 8 bits are reserved for internal use, so allowed values range is until 0xFF */ williamr@4: ESsmMainSystemStateMax = 0xFF williamr@4: }; williamr@4: williamr@4: /** williamr@4: Represents any sub state, used for transitioning to policies where you don't know (or care) williamr@4: about the sub state. williamr@4: @publishedPartner williamr@4: @released williamr@4: */ williamr@4: const TUint16 KSsmAnySubState = 0xFFFF; williamr@4: williamr@4: #endif //__SSMSTATES_HRH__