From 7ecbb11321a05f7498f36ff91d08b51fd3d00a62 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 20 Jan 2025 15:40:14 +0100 Subject: Add StatusLED --- StatusLED.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 StatusLED.h (limited to 'StatusLED.h') diff --git a/StatusLED.h b/StatusLED.h new file mode 100644 index 0000000..39b19f5 --- /dev/null +++ b/StatusLED.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include + +struct LED +{ + std::filesystem::path green; + std::filesystem::path red; +}; + +class StatusLED +{ +public: + enum class Mode + { + OK, // green + Error // red + }; + + StatusLED(); + + void addLED(const LED& led); + +private: + std::vector m_leds; // on best effort base, those will all show the same status + Mode m_mode; +}; -- cgit v1.2.3