hueplusplus 1.2.0
Loading...
Searching...
No Matches
ColorTemperatureStrategy.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_HUEPLUSPLUS_COLOR_TEMPERATURE_STRATEGY_H
24#define INCLUDE_HUEPLUSPLUS_COLOR_TEMPERATURE_STRATEGY_H
25
26#include <stdint.h>
27
28namespace hueplusplus
29{
30class Light;
31
34{
35public:
44 virtual bool setColorTemperature(unsigned int mired, uint8_t transition, Light& light) const = 0;
51 virtual bool alertTemperature(unsigned int mired, Light& light) const = 0;
59 virtual unsigned int getColorTemperature(Light& light) const = 0;
67 virtual unsigned int getColorTemperature(const Light& light) const = 0;
69 virtual ~ColorTemperatureStrategy() = default;
70};
71} // namespace hueplusplus
72
73#endif
Virtual base class for all ColorTemperatureStrategies.
Definition ColorTemperatureStrategy.h:34
virtual ~ColorTemperatureStrategy()=default
Virtual dtor.
virtual bool setColorTemperature(unsigned int mired, uint8_t transition, Light &light) const =0
Virtual function for changing a lights color temperature in mired with a specified transition.
virtual unsigned int getColorTemperature(Light &light) const =0
Virtual function that returns the current color temperature of the light.
virtual bool alertTemperature(unsigned int mired, Light &light) const =0
Virtual function that lets the light perform one breath cycle in the specified color.
virtual unsigned int getColorTemperature(const Light &light) const =0
Virtual function that returns the current color temperature of the light.
Class for Hue Light fixtures.
Definition Light.h:61
Namespace for the hueplusplus library.
Definition Action.h:28