openMSX
CassettePlayerCommand.hh
Go to the documentation of this file.
1#ifndef CASSETTEPLAYERCOMMAND_HH
2#define CASSETTEPLAYERCOMMAND_HH
3
4#include "RecordedCommand.hh"
5
6namespace openmsx {
7
9class CommandController;
10class StateChangeDistributor;
11class Scheduler;
12
14{
15public:
17 CommandController& commandController,
18 StateChangeDistributor& stateChangeDistributor,
19 Scheduler& scheduler);
20 void execute(std::span<const TclObject> tokens, TclObject& result,
21 EmuTime::param 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;
25private:
26 CassettePlayer* cassettePlayer;
27};
28
29} // namespace openmsx
30
31#endif
bool needRecord(std::span< const TclObject > tokens) const override
It's possible that in some cases the command doesn't need to be recorded after all (e....
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
void execute(std::span< const TclObject > tokens, TclObject &result, EmuTime::param time) override
This is like the execute() method of the Command class, it only has an extra time parameter.
std::string help(std::span< const TclObject > tokens) const override
Print help for this command.
Commands that directly influence the MSX state should send and events so that they can be recorded by...
This file implemented 3 utility functions:
Definition Autofire.cc:11