summaryrefslogtreecommitdiffhomepage
path: root/StatusLED.h
blob: 39b19f5b68cae6312d26b74a7b888d0a6a240f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
};