The BatteryInfo element allows you to receive battery change notifications from the device. More...
This element is part of the QtMobility.systeminfo 1.2 module. It is a convience class to make QML usage easier.
Note: To use notification signals, you need to set the monitor* properties to true.
DeviceInfo { id: devinfo monitorChargerTypeChanges: true monitorChargingStateChanges: true }
See also QSystemBatteryInfo.
Returns the amount of current flowing out from the battery (a short term averge), milliapmeres (mA). Positive current means discharging and negative current means charging.
Returns the QSystemBatteryInfo::EnergyUnit that the system uses.
Returns the Maximum number of bars the system uses. In the case that the system has no default number of battery bars, 0 is returned.
Start the connection for the batteryStatusChanged signal.
Start the connection for the chargerTypeChanged signal.
Start the connection for the chargingStateChanged signal.
Start the connection for the currentFlowChanged signal.
Start the connection for the nominalCapacityChanged signal.
Start the connection for the remainingCapacityBarsChanged signal.
Start the connection for the remainingCapacityChanged signal.
Start the connection for the remainingCapacityPercentChanged signal.
Start the connection for the remainingChargingTimeChanged signal.
Returns the nominal (maximum) capacity of the battery, in milliampere-hours (mAh). If no battery is found, -1.
Returns the remaining battery level of the battery in BatteryInfo::EnergyUnit.
See also QSystemBatteryInfo::EnergyUnit.
Returns the remaining capacity in number of bars. The bar count will not necessarily always reflect one to one on the remaining capacity percentage.
Returns the remaining battery level of the battery in percent. If no battery is found, -1.
Returns the remaining time of charging in seconds if charging, 0 if battery is full and not charging, or -1 no battery found.
This signal is emitted when battery status has changed.
See also QSystemBatteryInfo::ChargingState.
This signal is emitted when the charger type has changed, such as when a phone gets plugged in to the wall, or usb.
See also QSystemBatteryInfo::ChargerType.
This signal is emitted when charging state has changed.
See also QSystemBatteryInfo::ChargingState.
This signal is emitted when the short term averge battery current has changed, or on some systems at regular intervals.
On some systems where this can lead to a CPU intensive process, you should disconnect from this signal when you are finished.
See also QSystemBatteryInfo::currentFlow.
This signal is emitted when nominal (maximum) battery level has changed.
See also QSystemBatteryInfo::nominalCapacity.
This signal is emitted when battery level has changed.
BatteryInfo::remainingCapacityChanged ( QSystemBatteryInfo::EnergyUnit ) |
This signal is emitted when battery capacity has changed, reported in QSystemBatteryInfo::EnergyUnit.
See also QSystemBatteryInfo::remainingCapacity.
This signal is emitted when battery capacity in percent has changed.
This signal is emitted when remianing charge time has changed.