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