resourcemgmt/hwresourcesmgr/include/HWRMPowerStateSDKPSKeys.h
changeset 74 9d35fd98f273
parent 0 4e1aa6a622a0
equal deleted inserted replaced
69:dc67b94625c5 74:9d35fd98f273
   134 * @released
   134 * @released
   135 */
   135 */
   136 const TUint32 KHWRMBatteryStatus = 0x00000002;
   136 const TUint32 KHWRMBatteryStatus = 0x00000002;
   137 
   137 
   138 /**
   138 /**
       
   139  * Battery status of device. 
       
   140  *
       
   141  * This Property is a replacement for the existing property KHWRMBatteryStatus.
       
   142  * It is strictly recommended to use the new property by any up-coming applications.
       
   143  * Legacy property, KHWRMBatteryStatus, will be deprecated in the very next release.
       
   144  *
       
   145  * @see EPSHWRMBatteryStatus
       
   146  *
       
   147  * @publishedAll
       
   148  * @released
       
   149  */
       
   150 const TUint32 KHWRMExtendedBatteryStatus = 0x00000004;
       
   151 
       
   152 /**
   139 * Battery status of device.
   153 * Battery status of device.
   140 *
   154 *
   141 * @publishedAll
   155 * @publishedAll
   142 * @released
   156 * @released
   143 */
   157 */
   144 enum EPSHWRMBatteryStatus
   158 enum EPSHWRMBatteryStatus
   145     {
   159     {
   146     /**
   160     /**
   147     Uninitialized or some other error
   161 		Uninitialized or some other error e.g.server not intialized
   148     */
   162     */
   149     EBatteryStatusUnknown        = -1, 
   163 		EBatteryStatusUnknown        							= -1,
       
   164 		/**
       
   165 		* e.g. Chemistry not supported like LiFePo or general battery not supported error
       
   166 		* Show "charging not allowed" note to user
       
   167 		*/
       
   168 		EBatteryStatusNotSupported								= -2,
       
   169 		/**
       
   170 		* e.g. Pirated Battery with wrong DBI Chip / DBI authentication failed
       
   171 		* Show "charging not allowed" note to user
       
   172 		*/
       
   173 		EBatteryStatusDbiAuthFailed        				= -3,    
   150     /**
   174     /**
   151     This can also be used during charging
   175     This can also be used during charging
   152     */
   176     */
   153     EBatteryStatusOk             = 0,  
   177     EBatteryStatusOk             = 0,  
   154     /**
   178     /**
   171 * @released
   195 * @released
   172 */
   196 */
   173 const TUint32 KHWRMChargingStatus = 0x00000003;
   197 const TUint32 KHWRMChargingStatus = 0x00000003;
   174 
   198 
   175 /**
   199 /**
       
   200  * Charging status of device.
       
   201  *
       
   202  * This Property is a replacement for the existing property KHWRMChargingStatus.
       
   203  * It is strictly recommended to use the new property by any up-coming applications.
       
   204  * Legacy property, KHWRMChargingStatus, will be deprecated in the very next release.
       
   205  *
       
   206  * @see EPSHWRMChargingStatus
       
   207  *
       
   208  * @publishedAll
       
   209  * @released
       
   210  */
       
   211 const TUint32 KHWRMExtendedChargingStatus = 0x00000005;
       
   212 
       
   213 /**
   176 * Charging status of device.
   214 * Charging status of device.
   177 *
   215 *
   178 * @publishedAll
   216 * @publishedAll
   179 * @released
   217 * @released
   180 */
   218 */
   181 enum EPSHWRMChargingStatus
   219 enum EPSHWRMChargingStatus
   182     {
   220     {
   183     /**
   221     /**
   184     Some error has occurred when charger is connected or charging. 
   222     Some error has occurred when charger is connected or charging.    
   185     */
   223     */
   186     EChargingStatusError              = -1, 
   224     EChargingStatusError                        = -1,
       
   225     /**
       
   226      * Illegal charger is connected, device cannot charge
       
   227      */
       
   228     EChargingStatusIllegalChargerError          = -2,
       
   229     /**
       
   230      * Charger is under voltage, device cannot charge
       
   231      */
       
   232     EChargingStatusChargerUnderVoltageError     = -3,
       
   233     /**
       
   234      * Charger is over voltage, device cannot charge
       
   235      */
       
   236     EChargingStatusChargerOverVoltageError      = -4,
       
   237     /**
       
   238      * Wait for battery temperature to normalize before charging to proceed
       
   239      */
       
   240     EChargingStatusTempTooHotError              = -5,
       
   241     /**
       
   242      * Wait for battery temperature to normalize for charging
       
   243      */
       
   244     EChargingStatusTempTooColdError             = -6,
   187     /**
   245     /**
   188     Charger not connected/uninitialized
   246     Charger not connected/uninitialized
   189     */
   247     */
   190     EChargingStatusNotConnected       = 0,  
   248     EChargingStatusNotConnected       = 0,  
   191     /**
   249     /**