Listens for changes to a Battery and reports an error to the user when thresholds are crossed.
More...
|
|
void | addLocalBatteries () |
| | Adds all locally detected batteries to the watch list.
|
| void | addSensors (const Buffer< Battery * > &sensors) |
| | Adds battery sensors to be monitored for threshold alerts.
|
| void | removeSensors (const Buffer< Battery * > &sensors) |
| | Removes battery sensors from monitoring.
|
|
| void | stateChangeSlot (bool originator) |
| | Slot called when a battery state changes.
|
Listens for changes to a Battery and reports an error to the user when thresholds are crossed.
Definition at line 49 of file BatteryWidget.h.
◆ addSensors()
| void BatteryAlertWatcher::addSensors |
( |
const Buffer< Battery * > & | sensors | ) |
|
Adds battery sensors to be monitored for threshold alerts.
- Parameters
-
| [in] | sensors | The batteries to watch. |
◆ Default()
◆ removeSensors()
| void BatteryAlertWatcher::removeSensors |
( |
const Buffer< Battery * > & | sensors | ) |
|
Removes battery sensors from monitoring.
- Parameters
-
| [in] | sensors | The batteries to stop watching. |
◆ stateChangeSlot()
| void BatteryAlertWatcher::stateChangeSlot |
( |
bool | originator | ) |
|
|
protected |
Slot called when a battery state changes.
- Parameters
-
| [in] | originator | Whether this instance originated the change. |
The documentation for this class was generated from the following file: