hueplusplus  1.0.0
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 
28 namespace hueplusplus
29 {
30 class Light;
31 
34 {
35 public:
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:33
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...
Namespace for the hueplusplus library.
Definition: Action.h:27
virtual ~ColorTemperatureStrategy()=default
Virtual dtor.
Class for Hue Light fixtures.
Definition: Light.h:60
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(Light &light) const =0
Virtual function that returns the current color temperature of the light.