1#ifndef BACKLIGHTCONTROLLERIMPL_H
2#define BACKLIGHTCONTROLLERIMPL_H
4#include <QtClassHelperMacros>
64 static constexpr int MAX = 100;
65 static constexpr int MIN = 0;
66 int current_light = 50;
105#include "desktop_settings.h"
115 static constexpr int MIN = 1;
116 int current_light = 50;
118 const QString backlight_path = BACKLIGHT_BASE_PATH;
119 const QString brightness_file = backlight_path +
"brightness";
120 const QString max_brightness_file = backlight_path +
"max_brightness";
127 int MAX_LIGHT_VAL()
override;
133 int MIN_LIGHT_VAL()
override;
139 void setLightLevel(
int lightLevel)
override;
145 int lightLevel()
override;
The BacklightControllerImpl class Abstract base class for platform-specific backlight control impleme...
Definition BacklightControllerImpl.h:13
virtual int lightLevel()=0
Gets the current light level.
static BacklightControllerImpl * creator()
Creates a platform-specific implementation of BacklightControllerImpl.
Definition BacklightControllerImpl.cpp:3
virtual int MIN_LIGHT_VAL()=0
Gets the minimum supported light level.
virtual void setLightLevel(int lightLevel)=0
Sets the current light level.
virtual int MAX_LIGHT_VAL()=0
Gets the maximum supported light level.
The PesudoLightController class A dummy light controller used for testing or non-hardware platforms.
Definition BacklightControllerImpl.h:63
~PesudoLightController() override=default
Destructor.
PesudoLightController()=default
Default constructor.