openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::StateChangeListener Class Referenceabstract

#include <StateChangeListener.hh>

Inheritance diagram for openmsx::StateChangeListener:
Inheritance graph
[legend]

Public Member Functions

virtual void signalStateChange (const std::shared_ptr< StateChange > &event)=0
 This method gets called when a StateChange event occurs. More...
 
virtual void stopReplay (EmuTime::param time)=0
 This method gets called when we switch from replayed events to live events. More...
 

Protected Member Functions

 StateChangeListener ()
 
 ~StateChangeListener ()
 

Detailed Description

Definition at line 11 of file StateChangeListener.hh.

Constructor & Destructor Documentation

◆ StateChangeListener()

openmsx::StateChangeListener::StateChangeListener ( )
inlineprotected

Definition at line 31 of file StateChangeListener.hh.

◆ ~StateChangeListener()

openmsx::StateChangeListener::~StateChangeListener ( )
inlineprotected

Definition at line 32 of file StateChangeListener.hh.

Member Function Documentation

◆ signalStateChange()

virtual void openmsx::StateChangeListener::signalStateChange ( const std::shared_ptr< StateChange > &  event)
pure virtual

This method gets called when a StateChange event occurs.

This can be either a replayed or a 'live' event, (though that shouldn't matter, it should be handled in exactly the same way).

Referenced by openmsx::StateChangeDistributor::distributeReplay().

◆ stopReplay()

virtual void openmsx::StateChangeListener::stopReplay ( EmuTime::param  time)
pure virtual

This method gets called when we switch from replayed events to live events.

A input device should resync its state with the current host state. A replayer/recorder should switch from replay to record. Note that it's not possible to switch back to replay state (when the user triggers a replay, we always start from a snapshot, so we create 'fresh' objects).

Referenced by openmsx::StateChangeDistributor::stopReplay().


The documentation for this class was generated from the following file: