34#include <NDEVR/Battery.h>
35#include <NDEVR/Button.h>
36#include <NDEVR/Dictionary.h>
37#include <NDEVR/UUID.h>
Listens for changes to a Battery and reports an error to the user when thresholds are crossed.
void removeSensors(const Buffer< Battery * > &sensors)
Removes battery sensors from monitoring.
void addSensors(const Buffer< Battery * > &sensors)
Adds battery sensors to be monitored for threshold alerts.
Dictionary< UUID, QPointer< Battery > > m_sensors
Map of monitored battery sensors keyed by UUID.
void stateChangeSlot(bool originator)
Slot called when a battery state changes.
static BatteryAlertWatcher & Default()
Returns the singleton default BatteryAlertWatcher instance.
void addLocalBatteries()
Adds all locally detected batteries to the watch list.
A device which has an associated voltage or percent that changes.
The equivelent of std::vector but with a bit more control.
A hash-based key-value store, useful for quick associative lookups.
Displays translated text.
Represents a color in the RGB space with optional alpha transparency.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...