hueplusplus 1.2.0
Loading...
Searching...
No Matches
BrightnessStrategy.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_HUEPLUSPLUS_BRIGHTNESS_STRATEGY_H
24#define INCLUDE_HUEPLUSPLUS_BRIGHTNESS_STRATEGY_H
25
26#include <cstdint>
27
28namespace hueplusplus
29{
30class Light;
31
34{
35public:
43 virtual bool setBrightness(unsigned int bri, uint8_t transition, Light& light) const = 0;
49 virtual unsigned int getBrightness(Light& light) const = 0;
55 virtual unsigned int getBrightness(const Light& light) const = 0;
57 virtual ~BrightnessStrategy() = default;
58};
59} // namespace hueplusplus
60
61#endif
Virtual base class for all BrightnessStrategies.
Definition BrightnessStrategy.h:34
virtual bool setBrightness(unsigned int bri, uint8_t transition, Light &light) const =0
Virtual function for changing a lights brightness with a specified transition.
virtual unsigned int getBrightness(const Light &light) const =0
Virtual function that returns the current brightness of the light.
virtual ~BrightnessStrategy()=default
Virtual dtor.
virtual unsigned int getBrightness(Light &light) const =0
Virtual function that returns the current brightnessof the light.
Class for Hue Light fixtures.
Definition Light.h:61
Namespace for the hueplusplus library.
Definition Action.h:28