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
7namespace openmsx {
8
9class Event;
10
12{
13public:
16
19 virtual void signalMSXEvent(const Event& event,
20 EmuTime::param time) noexcept = 0;
21
22protected:
23 MSXEventListener() = default;
24 ~MSXEventListener() = default;
25};
26
27} // namespace openmsx
28
29#endif
MSXEventListener(const MSXEventListener &)=delete
MSXEventListener & operator=(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