| e8555c89 Andy McCall |
1 |
#ifndef FRONTSWITCH_HH |
| 2 |
#define FRONTSWITCH_HH |
| 3 |
|
| 4 |
#include "BooleanSetting.hh" |
| 5 |
#include "DeviceConfig.hh" |
| 6 |
|
| 7 |
namespace openmsx { |
| 8 |
|
| 9 |
class FirmwareSwitch |
| 10 |
{ |
| 11 |
public: |
| 12 |
explicit FirmwareSwitch(const DeviceConfig& config); |
| 13 |
~FirmwareSwitch(); |
| 14 |
|
| 15 |
[[nodiscard]] bool getStatus() const { return setting.getBoolean(); } |
| 16 |
|
| 17 |
private: |
| 18 |
const DeviceConfig config; |
| 19 |
BooleanSetting setting; |
| 20 |
}; |
| 21 |
|
| 22 |
} |
| 23 |
|
| 24 |
#endif |