openMSX
MSXEventListener.hh
Go to the documentation of this file.
1 #ifndef MSXEVENTLISTENER_HH
2 #define MSXEVENTLISTENER_HH
3 
4 #include "EmuTime.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class Event;
10 
12 {
13 public:
16 
19  virtual void signalMSXEvent(const Event& event,
20  EmuTime::param time) noexcept = 0;
21 
22 protected:
23  MSXEventListener() = default;
24  ~MSXEventListener() = default;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
MSXEventListener & operator=(const MSXEventListener &)=delete
MSXEventListener(const MSXEventListener &)=delete
virtual void signalMSXEvent(const Event &event, EmuTime::param time) noexcept=0
This method gets called when an event you are subscribed to occurs.
This file implemented 3 utility functions:
Definition: Autofire.cc:9