|
Lamp-Da 0.1
A compact lantern project
|
This alert is raised when the system fails to go to sleep. There is no way to recover from this, as we depend on the low level handlers for this functionality. 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 |
| Cleared after a delay. | |
| bool | should_prevent_lamp_output () const override |
| Prevent output usage. | |
| bool | should_prevent_battery_charge () const override |
| Prevent battery charge. | |
| bool | should_prevent_usb_port_use () const override |
| Prevent USB use. | |
| 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 system fails to go to sleep. There is no way to recover from this, as we depend on the low level handlers for this functionality.
|
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 |
Cleared after a delay.
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 |
Prevent battery charge.
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
Prevent output usage.
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
Prevent USB use.
Reimplemented from lampda::logic::alerts::AlertBase.
|
inlineoverridevirtual |
display this alert on the indicator
Reimplemented from lampda::logic::alerts::AlertBase.