TwiceAsNice
2019-02-18
|
#include <indilightboxinterface.h>
Public Types | |
enum | { FLAT_LIGHT_ON, FLAT_LIGHT_OFF } |
enum | { FLAT_LIGHT_ON, FLAT_LIGHT_OFF } |
Protected Member Functions | |
LightBoxInterface (DefaultDevice *device, bool isDimmable) | |
virtual | ~LightBoxInterface () |
void | initLightBoxProperties (const char *deviceName, const char *groupNam) |
Initilize light box properties. More... | |
void | isGetLightBoxProperties (const char *deviceName) |
isGetLightBoxProperties Get light box properties More... | |
bool | processLightBoxSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process light box switch properties. More... | |
bool | processLightBoxNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process light box number properties. More... | |
bool | processLightBoxText (const char *dev, const char *name, char *texts[], char *names[], int n) |
Process light box text properties. More... | |
bool | updateLightBoxProperties () |
bool | saveLightBoxConfigItems (FILE *fp) |
bool | snoopLightBox (XMLEle *root) |
virtual bool | SetLightBoxBrightness (uint16_t value) |
setBrightness Set light level. More... | |
virtual bool | EnableLightBox (bool enable) |
EnableLightBox Turn on/off on a light box. More... | |
LightBoxInterface (DefaultDevice *device, bool isDimmable) | |
virtual | ~LightBoxInterface () |
void | initLightBoxProperties (const char *deviceName, const char *groupNam) |
Initilize light box properties. More... | |
void | isGetLightBoxProperties (const char *deviceName) |
isGetLightBoxProperties Get light box properties More... | |
bool | processLightBoxSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process light box switch properties. More... | |
bool | processLightBoxNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process light box number properties. More... | |
bool | processLightBoxText (const char *dev, const char *name, char *texts[], char *names[], int n) |
Process light box text properties. More... | |
bool | updateLightBoxProperties () |
bool | saveLightBoxConfigItems (FILE *fp) |
bool | snoopLightBox (XMLEle *root) |
virtual bool | SetLightBoxBrightness (uint16_t value) |
setBrightness Set light level. More... | |
virtual bool | EnableLightBox (bool enable) |
EnableLightBox Turn on/off on a light box. More... | |
Protected Attributes | |
ISwitchVectorProperty | LightSP |
ISwitch | LightS [2] |
INumberVectorProperty | LightIntensityNP |
INumber | LightIntensityN [1] |
ITextVectorProperty | ActiveDeviceTP |
IText | ActiveDeviceT [1] {} |
INumberVectorProperty | FilterIntensityNP |
INumber * | FilterIntensityN |
Private Member Functions | |
void | addFilterDuration (const char *filterName, uint16_t filterDuration) |
void | addFilterDuration (const char *filterName, uint16_t filterDuration) |
Private Attributes | |
DefaultDevice * | device |
uint8_t | currentFilterSlot |
bool | isDimmable |
|
protected |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
private |
|
private |
|
protected |
Initilize light box properties.
It is recommended to call this function within initProperties() of your primary device
deviceName | Name of the primary device |
groupName | Group or tab name to be used to define light box properties. |
|
protected |
Initilize light box properties.
It is recommended to call this function within initProperties() of your primary device
deviceName | Name of the primary device |
groupName | Group or tab name to be used to define light box properties. |
|
protected |
isGetLightBoxProperties Get light box properties
deviceName | parent device name |
|
protected |
isGetLightBoxProperties Get light box properties
deviceName | parent device name |
|
protected |
Process light box number properties.
|
protected |
Process light box number properties.
|
protected |
Process light box switch properties.
|
protected |
Process light box switch properties.
|
protected |
Process light box text properties.
|
protected |
Process light box text properties.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |