summaryrefslogtreecommitdiffhomepage
path: root/StatusLED.h
diff options
context:
space:
mode:
Diffstat (limited to 'StatusLED.h')
-rw-r--r--StatusLED.h28
1 files changed, 28 insertions, 0 deletions
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 <vector>
+#include <filesystem>
+
+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<LED> m_leds; // on best effort base, those will all show the same status
+ Mode m_mode;
+};