1#ifndef LIGHTCONTROLLERWINDOW_H
2#define LIGHTCONTROLLERWINDOW_H
4#include "LEDController.h"
27 static constexpr const char*
DEV_FILE =
"red-led";
52 bool init_state {
false };
53 Ui::LightControllerWindow* ui;
High-level controller interface for controlling LEDs, abstracting real or pseudo backends.
Definition LEDController.h:12
Parameter package for blinking LED behavior.
Definition LEDParamsPackage.h:22
Parameter package for simple on/off LED control.
Definition LEDParamsPackage.h:46
Main window class for controlling LEDs with various modes and speeds.
Definition lightcontrollerwindow.h:15
void process_flip()
Handle flipping the LED state.
Definition lightcontrollerwindow.cpp:24
static constexpr const short BLINK_DEF
Default blink interval in milliseconds.
Definition lightcontrollerwindow.h:30
void process_blink()
Handle blinking the LED.
Definition lightcontrollerwindow.cpp:37
void process_mode_switching()
Switch the LED operation mode.
Definition lightcontrollerwindow.cpp:45
~LightControllerWindow()
Destructor.
Definition lightcontrollerwindow.cpp:18
Speed
Enumeration for LED blinking speed.
Definition lightcontrollerwindow.h:20
@ Normal
Normal blinking speed.
@ Fast
Fast blinking speed.
@ Slow
Slow blinking speed.
static constexpr const char * DEV_FILE
Device file identifier for the red LED.
Definition lightcontrollerwindow.h:27
void process_speed_switching()
Switch the blinking speed.
Definition lightcontrollerwindow.cpp:65