williamr@2: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2: // All rights reserved.
williamr@2: // This component and the accompanying materials are made available
williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2: // which accompanies this distribution, and is available
williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2: //
williamr@2: // Initial Contributors:
williamr@2: // Nokia Corporation - initial contribution.
williamr@2: //
williamr@2: // Contributors:
williamr@2: //
williamr@2: // Description:
williamr@2: // e32\include\e32power.h
williamr@2: // 
williamr@2: //
williamr@2: 
williamr@2: #ifndef __E32POWER_H__
williamr@2: #define __E32POWER_H__
williamr@2: 
williamr@2: #include <e32cmn.h>
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: /**
williamr@2: @publishedPartner
williamr@2: @released
williamr@2: 
williamr@2: System-wide power states
williamr@2: */
williamr@2: enum TPowerState
williamr@2: 	{
williamr@2: 	/** The system is fully operational; could be busy or idle */ 
williamr@2: 	EPwActive,
williamr@2: 	/** The system sleeps keeping the full memory state in RAM */ 
williamr@2: 	EPwStandby,
williamr@2: 	/** System is off; can go to active by rebooting only */
williamr@2: 	EPwOff,
williamr@2: 	/** The system restarts - i.e. switches off and then back on */
williamr@2: 	EPwRestart,
williamr@2: 	/** An integer that strictly greater of any legal power state value */
williamr@2: 	EPwLimit,
williamr@2: 	};
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: /** 
williamr@2: @publishedPartner
williamr@2: @released
williamr@2: 
williamr@2: User-level domain manager's interface to Kernel-level power management.
williamr@2: */
williamr@2: class Power
williamr@2: 
williamr@2: 	{
williamr@2: public:
williamr@2: 	IMPORT_C static TInt EnableWakeupEvents(TPowerState);
williamr@2: 	IMPORT_C static void DisableWakeupEvents();
williamr@2: 	IMPORT_C static void RequestWakeupEventNotification(TRequestStatus&);
williamr@2: 	IMPORT_C static void CancelWakeupEventNotification();
williamr@2: 	IMPORT_C static TInt PowerDown();
williamr@2: 	};
williamr@2: 
williamr@2: #endif