|
Lamp-Da 0.1
A compact lantern project
|
This alert is raised when the battery readings do not fit the battery physical model. More...
Public Member Functions | |
| bool | show () const override |
| display this alert on the indicator | |
| Type | get_type () const override |
| return the Defined type of this alert | |
| bool | should_be_cleared () const override |
| return true if this alert type should be cleared | |
| bool | should_prevent_lamp_output () const override |
| override to prevent lamp output power if this alert if raised. Default to False | |
| bool | should_prevent_battery_charge () const override |
| override to prevent battery charge if this alert if raised. Default to False | |
| bool | should_prevent_usb_port_use () const override |
| override to prevent USB port usage if this alert if raised. Default to False | |
| virtual uint32_t | alert_shutdown_timeout () const |
| Return the timeout after which an alert will make the system auto-shutdown. | |
| virtual void | execute () const |
| function executed when this alert is raised | |
| virtual bool | should_be_raised () const |
| return true if this alert type should be raised | |
| virtual bool | should_shutdown_system (const uint32_t time) final |
| Return true if the system should shutdown from this alert. | |
| virtual bool | handle_raised_state (const uint32_t time) |
| Handler for the raised state of the alert. If the alert is not raised, raise the alert. | |
| void | update_raise_time (const uint32_t time) |
| Update the raised time of this alert. An alert continuously firing as to be updated. | |
| virtual bool | handle_lowered_state (const uint32_t time) |
| Handler for the lowered state of the alert. If the alert is raised, lower the alert. | |
This alert is raised when the battery readings do not fit the battery physical model.
|
inlinevirtualinherited |
Return the timeout after which an alert will make the system auto-shutdown.
Reimplemented in lampda::logic::alerts::Alert_BatteryCritical, and lampda::logic::alerts::Alert_TempCritical.
|
inlinevirtualinherited |
function executed when this alert is raised
Reimplemented in lampda::logic::alerts::Alert_BatteryLow, and lampda::logic::alerts::Alert_TempTooHigh.
|
inlineoverridevirtual |
return the Defined type of this alert
Implements lampda::logic::alerts::AlertBase.
|
inlinevirtualinherited |
Handler for the lowered state of the alert. If the alert is raised, lower the alert.
|
inlinevirtualinherited |
Handler for the raised state of the alert. If the alert is not raised, raise the alert.
|
inlineoverridevirtual |
return true if this alert type should be cleared
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlinevirtualinherited |
return true if this alert type should be raised
Reimplemented in lampda::logic::alerts::Alert_BatteryCritical, lampda::logic::alerts::Alert_BatteryLow, lampda::logic::alerts::Alert_TempTooHigh, and lampda::logic::alerts::Alert_TempCritical.
|
inlineoverridevirtual |
override to prevent battery charge if this alert if raised. Default to False
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
override to prevent lamp output power if this alert if raised. Default to False
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
override to prevent USB port usage if this alert if raised. Default to False
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
display this alert on the indicator
Reimplemented from lampda::logic::alerts::AlertBase.