FirmwareSwitch.hh 386 B

12345678910111213141516171819202122232425
  1. #ifndef FRONTSWITCH_HH
  2. #define FRONTSWITCH_HH
  3. #include "DeviceConfig.hh"
  4. #include "BooleanSetting.hh"
  5. namespace openmsx {
  6. class FirmwareSwitch
  7. {
  8. public:
  9. explicit FirmwareSwitch(const DeviceConfig& config);
  10. ~FirmwareSwitch();
  11. bool getStatus() const { return setting.getBoolean(); }
  12. private:
  13. const DeviceConfig config;
  14. BooleanSetting setting;
  15. };
  16. } // namespace openmsx
  17. #endif