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
18public:
20
24 virtual ~EventListener();
25
31 virtual void handleEvent(event_t& event) = 0;
32
36 void listen();
37};
Event listener.
Definition: cs_EventListener.h:17
virtual void handleEvent(event_t &event)=0
Handle events.
EventListener()
Definition: cs_EventListener.h:19
virtual ~EventListener()
unregisters the listener.
void listen()
Registers this with the EventDispatcher.
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition: cs_Event.h:26