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