openMSX
EventListener.hh
Go to the documentation of this file.
1 #ifndef EVENTLISTENER_HH
2 #define EVENTLISTENER_HH
3 
4 namespace openmsx {
5 
6 class Event;
7 
9 {
10 public:
11  EventListener(const EventListener&) = delete;
13 
23  virtual int signalEvent(const Event& event) noexcept = 0;
24 
25 protected:
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