123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef HDCOMMAND_HH
- #define HDCOMMAND_HH
- #include "RecordedCommand.hh"
- #include <string>
- #include <vector>
- namespace openmsx {
- class CommandController;
- class StateChangeDistributor;
- class Scheduler;
- class TclObject;
- class HD;
- class BooleanSetting;
- class HDCommand final : public RecordedCommand
- {
- public:
- HDCommand(CommandController& commandController,
- StateChangeDistributor& stateChangeDistributor,
- Scheduler& scheduler, HD& hd, BooleanSetting& powerSetting);
- void execute(span<const TclObject> tokens,
- TclObject& result, EmuTime::param time) override;
- std::string help(const std::vector<std::string>& tokens) const override;
- void tabCompletion(std::vector<std::string>& tokens) const override;
- bool needRecord(span<const TclObject> tokens) const override;
- private:
- HD& hd;
- const BooleanSetting& powerSetting;
- };
- } // namespace openmsx
- #endif
|