CCIMXDesktop
 
Loading...
Searching...
No Matches
LightControllerWindow Class Reference

Main window class for controlling LEDs with various modes and speeds. More...

#include <lightcontrollerwindow.h>

Inheritance diagram for LightControllerWindow:

Public Types

enum class  Speed { Slow , Normal , Fast }
 Enumeration for LED blinking speed. More...
 

Public Member Functions

 LightControllerWindow (QWidget *parent=nullptr)
 Constructor.
 
 ~LightControllerWindow ()
 Destructor.
 
void process_flip ()
 Handle flipping the LED state.
 
void process_blink ()
 Handle blinking the LED.
 
void process_mode_switching ()
 Switch the LED operation mode.
 
void process_speed_switching ()
 Switch the blinking speed.
 

Static Public Attributes

static constexpr const char * DEV_FILE = "red-led"
 Device file identifier for the red LED.
 
static constexpr const short BLINK_DEF = 500
 Default blink interval in milliseconds.
 

Detailed Description

Main window class for controlling LEDs with various modes and speeds.

Member Enumeration Documentation

◆ Speed

enum class LightControllerWindow::Speed
strong

Enumeration for LED blinking speed.

Enumerator
Slow 

Slow blinking speed.

Normal 

Normal blinking speed.

Fast 

Fast blinking speed.

Constructor & Destructor Documentation

◆ LightControllerWindow()

LightControllerWindow::LightControllerWindow ( QWidget *  parent = nullptr)

Constructor.

Parameters
parentParent widget.

The documentation for this class was generated from the following files: