Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
#include <cs_MultiSwitchHandler.h>
Public Member Functions | |
MultiSwitchHandler (MultiSwitchHandler const &)=delete | |
void | operator= (MultiSwitchHandler const &)=delete |
void | init () |
void | handleMultiSwitch (internal_multi_switch_item_t *cmd, cmd_source_with_counter_t &source) |
void | handleEvent (event_t &event) |
Handle events. More... | |
![]() | |
EventListener () | |
virtual | ~EventListener () |
unregisters the listener. More... | |
virtual void | handleEvent (event_t &event)=0 |
Handle events. More... | |
void | listen () |
Registers this with the EventDispatcher. More... | |
Static Public Member Functions | |
static MultiSwitchHandler & | getInstance () |
Gets a static singleton (no dynamic memory allocation) More... | |
Private Member Functions | |
MultiSwitchHandler () | |
Private Attributes | |
stone_id_t | _ownId = 0 |
|
private |
|
delete |
|
inlinestatic |
Gets a static singleton (no dynamic memory allocation)
|
virtual |
Handle events.
This method is overloaded by all classes that derive from EventListener. They can receive an event_t struct and act upon it. These events are dispatched by the EventDispatcher.
Implements EventListener.
void MultiSwitchHandler::handleMultiSwitch | ( | internal_multi_switch_item_t * | cmd, |
cmd_source_with_counter_t & | source | ||
) |
void MultiSwitchHandler::init | ( | ) |
|
delete |
|
private |