Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
MultiSwitchHandler Class Reference

#include <cs_MultiSwitchHandler.h>

Inheritance diagram for MultiSwitchHandler:
Collaboration diagram for MultiSwitchHandler:

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...
 
- Public Member Functions inherited from EventListener
 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 MultiSwitchHandlergetInstance ()
 Gets a static singleton (no dynamic memory allocation) More...
 

Private Member Functions

 MultiSwitchHandler ()
 

Private Attributes

stone_id_t _ownId = 0
 

Constructor & Destructor Documentation

◆ MultiSwitchHandler() [1/2]

◆ MultiSwitchHandler() [2/2]

Member Function Documentation

◆ getInstance()

static MultiSwitchHandler & MultiSwitchHandler::getInstance ( )
inlinestatic

Gets a static singleton (no dynamic memory allocation)

◆ handleEvent()

void MultiSwitchHandler::handleEvent ( event_t event)
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.

◆ handleMultiSwitch()

void MultiSwitchHandler::handleMultiSwitch ( internal_multi_switch_item_t cmd,
cmd_source_with_counter_t source 
)

◆ init()

void MultiSwitchHandler::init ( )

◆ operator=()

void MultiSwitchHandler::operator= ( MultiSwitchHandler const &  )
delete

Member Data Documentation

◆ _ownId

stone_id_t MultiSwitchHandler::_ownId = 0
private

The documentation for this class was generated from the following file: