00001 /* 00002 * ============================================================================== 00003 * Name : HWRMPowerStateSDKPSKeys.h 00004 * Part of : HW Resource Manager / HWResourceManager 00005 * Interface : Public 00006 * Description : SDK Publish&Subscribe definitions of the 00007 * HW Resource Manager for the Power State API. 00008 * Version : %version:5 % 00009 * 00010 * Copyright © 2002-2006 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================== 00020 */ 00021 00022 #ifndef HWRMPOWERSTATESDKPSKEYS_H 00023 #define HWRMPOWERSTATESDKPSKEYS_H 00024 00025 // INCLUDES 00026 #include <e32std.h> 00027 00050 const TUid KPSUidHWRMPowerState = { 0x10205041 }; 00051 00052 00065 const TUint32 KHWRMBatteryLevel = 0x00000001; 00066 00071 enum EPSHWRMBatteryLevel 00072 { 00073 EBatteryLevelUnknown = -1, 00074 EBatteryLevelLevel0 = 0, 00075 EBatteryLevelLevel1 = 1, 00076 EBatteryLevelLevel2 = 2, 00077 EBatteryLevelLevel3 = 3, 00078 EBatteryLevelLevel4 = 4, 00079 EBatteryLevelLevel5 = 5, 00080 EBatteryLevelLevel6 = 6, 00081 EBatteryLevelLevel7 = 7 00082 }; 00083 00084 00100 const TUint32 KHWRMBatteryStatus = 0x00000002; 00101 00105 enum EPSHWRMBatteryStatus 00106 { 00107 EBatteryStatusUnknown = -1, 00108 EBatteryStatusOk = 0, 00109 EBatteryStatusLow = 1, 00110 EBatteryStatusEmpty = 2 00111 }; 00112 00119 const TUint32 KHWRMChargingStatus = 0x00000003; 00120 00124 enum EPSHWRMChargingStatus 00125 { 00126 EChargingStatusError = -1, 00127 EChargingStatusNotConnected = 0, 00128 EChargingStatusCharging = 1, 00129 EChargingStatusNotCharging = 2, 00130 EChargingStatusAlmostComplete = 3, 00131 EChargingStatusChargingComplete = 4, 00132 EChargingStatusChargingContinued = 5 00133 }; 00134 00135 00136 // HWRMPOWERSTATESDKPSKEYS_H 00137 #endif