openMSX
EventListener.hh
Go to the documentation of this file.
1#ifndef EVENTLISTENER_HH
2#define EVENTLISTENER_HH
3
4namespace openmsx {
5
6class Event;
7
9{
10public:
11 EventListener(const EventListener&) = delete;
13
23 virtual int signalEvent(const Event& event) noexcept = 0;
24
25protected:
26 EventListener() = default;
27 ~EventListener() = default;
28};
29
30} // namespace openmsx
31
32#endif // EVENTLISTENER_HH
EventListener(const EventListener &)=delete
EventListener & operator=(const EventListener &)=delete
virtual int signalEvent(const Event &event) noexcept=0
This method gets called when an event you are subscribed to occurs.
This file implemented 3 utility functions:
Definition: Autofire.cc:9