openMSX
StateChangeListener.hh
Go to the documentation of this file.
1 #ifndef STATECHANGELISTENER_HH
2 #define STATECHANGELISTENER_HH
3 
4 #include "EmuTime.hh"
5 
6 namespace openmsx {
7 
8 class StateChange;
9 
11 {
12 public:
15 
21  virtual void signalStateChange(const StateChange& event) = 0;
22 
30  virtual void stopReplay(EmuTime::param time) noexcept = 0;
31 
32 protected:
33  StateChangeListener() = default;
34  ~StateChangeListener() = default;
35 };
36 
37 } // namespace openmsx
38 
39 #endif
StateChangeListener(const StateChangeListener &)=delete
virtual void signalStateChange(const StateChange &event)=0
This method gets called when a StateChange event occurs.
virtual void stopReplay(EmuTime::param time) noexcept=0
This method gets called when we switch from replayed events to live events.
StateChangeListener & operator=(const StateChangeListener &)=delete
Base class for all external MSX state changing events.
Definition: StateChange.hh:20
This file implemented 3 utility functions:
Definition: Autofire.cc:9