Loading...
Searching...
No Matches
ColorTemperatureStrategy.h
Go to the documentation of this file.
#ifndef INCLUDE_HUEPLUSPLUS_COLOR_TEMPERATURE_STRATEGY_H
#define INCLUDE_HUEPLUSPLUS_COLOR_TEMPERATURE_STRATEGY_H
#include <stdint.h>
namespace hueplusplus
{
class Light;
class ColorTemperatureStrategy
{
public:
virtual bool setColorTemperature(unsigned int mired, uint8_t transition, Light& light) const = 0;
virtual bool alertTemperature(unsigned int mired, Light& light) const = 0;
virtual unsigned int getColorTemperature(Light& light) const = 0;
virtual unsigned int getColorTemperature(const Light& light) const = 0;
virtual ~ColorTemperatureStrategy() = default;
};
} // namespace hueplusplus
#endif
hueplusplus::ColorTemperatureStrategy
Virtual base class for all ColorTemperatureStrategies.
Definition ColorTemperatureStrategy.h:34
hueplusplus::ColorTemperatureStrategy::~ColorTemperatureStrategy
virtual ~ColorTemperatureStrategy()=default
Virtual dtor.
hueplusplus::ColorTemperatureStrategy::setColorTemperature
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.
hueplusplus::ColorTemperatureStrategy::getColorTemperature
virtual unsigned int getColorTemperature(Light &light) const =0
Virtual function that returns the current color temperature of the light.
hueplusplus::ColorTemperatureStrategy::alertTemperature
virtual bool alertTemperature(unsigned int mired, Light &light) const =0
Virtual function that lets the light perform one breath cycle in the specified color.
hueplusplus::ColorTemperatureStrategy::getColorTemperature
virtual unsigned int getColorTemperature(const Light &light) const =0
Virtual function that returns the current color temperature of the light.
hueplusplus::Light
Class for Hue Light fixtures.
Definition Light.h:61
hueplusplus
Namespace for the hueplusplus library.
Definition Action.h:28