OXYGENHUB
◆ main openmsx / src / cassette / CassettePlayerCommand.hh
877 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef CASSETTEPLAYERCOMMAND_HH
2
#define CASSETTEPLAYERCOMMAND_HH
3
4
#include "RecordedCommand.hh"
5
6
namespace openmsx {
7
8
class CassettePlayer;
9
class CommandController;
10
class StateChangeDistributor;
11
class Scheduler;
12
13
class CassettePlayerCommand final : public RecordedCommand
14
{
15
public:
16
	CassettePlayerCommand(CassettePlayer* cassettePlayer_,
17
		    CommandController& commandController,
18
		    StateChangeDistributor& stateChangeDistributor,
19
		    Scheduler& scheduler);
20
	void execute(std::span<const TclObject> tokens, TclObject& result,
21
		     EmuTime time) override;
22
	[[nodiscard]] std::string help(std::span<const TclObject> tokens) const override;
23
	void tabCompletion(std::vector<std::string>& tokens) const override;
24
	[[nodiscard]] bool needRecord(std::span<const TclObject> tokens) const override;
25
private:
26
	CassettePlayer* cassettePlayer;
27
};
28
29
} // namespace openmsx
30
31
#endif