symport/e32/include/e32power.h
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32\include\e32power.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __E32POWER_H__
       
    19 #define __E32POWER_H__
       
    20 
       
    21 #include <e32cmn.h>
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 /**
       
    27 @publishedPartner
       
    28 @released
       
    29 
       
    30 System-wide power states
       
    31 */
       
    32 enum TPowerState
       
    33 	{
       
    34 	/** The system is fully operational; could be busy or idle */ 
       
    35 	EPwActive,
       
    36 	/** The system sleeps keeping the full memory state in RAM */ 
       
    37 	EPwStandby,
       
    38 	/** System is off; can go to active by rebooting only */
       
    39 	EPwOff,
       
    40 	/** The system restarts - i.e. switches off and then back on */
       
    41 	EPwRestart,
       
    42 	/** An integer that strictly greater of any legal power state value */
       
    43 	EPwLimit,
       
    44 	};
       
    45 
       
    46 
       
    47 
       
    48 
       
    49 /** 
       
    50 @publishedPartner
       
    51 @released
       
    52 
       
    53 User-level domain manager's interface to Kernel-level power management.
       
    54 */
       
    55 class Power
       
    56 
       
    57 	{
       
    58 public:
       
    59 	IMPORT_C static TInt EnableWakeupEvents(TPowerState);
       
    60 	IMPORT_C static void DisableWakeupEvents();
       
    61 	IMPORT_C static void RequestWakeupEventNotification(TRequestStatus&);
       
    62 	IMPORT_C static void CancelWakeupEventNotification();
       
    63 	IMPORT_C static TInt PowerDown();
       
    64 	};
       
    65 
       
    66 #endif
       
    67