#include <esve/kernel/Wake_State_Server.hxx>
Inheritance diagram for esve::kernel::Wake_State_Server:

Public Member Functions | |
| void | add_handler (kernel::Handler &) |
| Child handlers. | |
| void | remove_handler (kernel::Handler &) |
| Child handlers. | |
| void | remove_all_handlers () |
| Child handlers. | |
| bool | active () const |
| Whether to pass messages to children. | |
| void | active (bool) |
| Whether to pass messages to children. | |
| virtual bool | active () const =0 |
| Whether to pass messages to children. | |
| virtual void | active (bool)=0 |
| Whether to pass messages to children. | |
Protected Member Functions | |
| bool | handle_check_awake (bool currently_awake) |
| Do you want to be awake? | |
| bool | handle_wake () |
| The command to wake up. | |
| bool | handle_sleep () |
| The command to sleep. | |
| bool | awake () const |
| Are we awake? | |
| virtual bool | emit_check_awake () |
| Ask whoever's listening if they want to be awake. | |
| virtual bool | emit_sleep () |
| Tell folks to go to sleep. | |
| virtual bool | emit_wake () |
| Tell folks to go to wake up. | |
A Wake_State_Server is both a kernel::Node, a Wake_State_Emitter, and a Wake_State_Handler.
In response to a handle_check_awake() message:
|
|
Do you want to be awake? If currently awake, a return value of true indicates a desire to stay awake. If not currently awake, a return value of true indicates a desire to wake up. Implements esve::kernel::Wake_State_Handler. |
|
|
Whether to pass messages to children. When active(), messages are relayed from parents to children. When active() == false, no messages are relayed. Implemented in esve::message::impl::Active_State, and esve::kernel::Caching_Node. |
|
|
Whether to pass messages to children. When active(), messages are relayed from parents to children. When active() == false, no messages are relayed. Implemented in esve::message::impl::Active_State, and esve::kernel::Caching_Node. |
|
|
Whether to pass messages to children. When active(), messages are relayed from parents to children. When active() == false, no messages are relayed. Implements esve::message::Active_State. |
|
|
Whether to pass messages to children. When active(), messages are relayed from parents to children. When active() == false, no messages are relayed. Implements esve::message::Active_State. |
1.3.4