API published in: S60 3rd Ed
Required Capabilities
None
These keys provide up-to-date information on the charging status, battery level and battery state of the device. Any application may subscribe to these P&S keys that are updated to receive notifications of any change in state.
This interface relies on the Publish and Subscribe (P&S) interface provided by Symbian. P&S is used by HW Resource Manager to globally publish the power state information.
The P&D UID is KPSUidHWRMPowerState and following keys are provided:
#include <e32std.h>
Go to the source code of this file.
|
Battery level of device. Can be related to the number of battery bars displayed by the device. |
|
Battery status of device. |
|
|
P&S key to represent the battery level of the device.
It can also be related to the number of battery bars displayed. This property is updated only when battery level changes.
Valid values are defined by the enum EPSHWRMBatteryLevel and range from -1 to 7.
|
|
Battery status of device. This property may be updated to same status as previously, to indicate the note in question needs to be shown again. EBatteryStatusLow update comes approximately ten times before battery is completely empty and it comes at approximately 10 minute intervals. If phone is in-call mode, update comes at approximately 1 minute intervals. EBatteryStatusEmpty comes slightly before phone must power down automatically because of insufficient battery power.
|
|
Charging status of device. This property is updated only when charging status changes.
|
|
P&S UID for all power state information keys provided by this API. |