Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_EventListener.h
Go to the documentation of this file.
1
/*
2
* Author: Crownstone Team
3
* Copyright: Crownstone (https://crownstone.rocks)
4
* Date: 1 Dec., 2014
5
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6
*/
7
8
#pragma once
9
10
#include <
events/cs_Event.h
>
11
12
#include <cstdint>
13
17
class
EventListener
{
18
public
:
19
EventListener
() {}
20
24
virtual
~EventListener
();
25
31
virtual
void
handleEvent
(
event_t
& event) = 0;
32
36
void
listen
();
37
};
EventListener
Event listener.
Definition:
cs_EventListener.h:17
EventListener::handleEvent
virtual void handleEvent(event_t &event)=0
Handle events.
EventListener::EventListener
EventListener()
Definition:
cs_EventListener.h:19
EventListener::~EventListener
virtual ~EventListener()
unregisters the listener.
EventListener::listen
void listen()
Registers this with the EventDispatcher.
event_t
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition:
cs_Event.h:26
cs_Event.h
source
include
events
cs_EventListener.h
Generated by
1.9.5