49 m_Capabilities = capabilities;
174 for (
int i = 0; i < n; i++)
175 addFilterDuration(names[i], values[i]);
259 if (!strcmp(propTag,
"delProperty"))
262 if (!strcmp(propName,
"FILTER_NAME"))
266 uint32_t snoopCounter = 0;
267 bool isDifferent =
false;
310 else if (!strcmp(propName,
"FILTER_SLOT"))
320 if (!strcmp(elemName,
"FILTER_SLOT_VALUE"))
351void LightBoxInterface::addFilterDuration(
const char *filterName, uint16_t filterDuration)
const char * getDeviceName() const
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool saveConfig(bool silent=false, const char *property=nullptr)
Save the current properties in a configuration file.
virtual bool deleteProperty(const char *propertyName)
Delete a property and unregister it. It will also be deleted from all clients.
void defineProperty(INumberVectorProperty *property)
void initProperties(const char *group, uint32_t capabilities)
Initialize light box properties. It is recommended to call this function within initProperties() of y...
void ISGetProperties(const char *deviceName)
isGetLightBoxProperties Get light box properties
INDI::PropertyText ActiveDeviceTP
INDI::PropertyNumber LightIntensityNP
bool saveConfigItems(FILE *fp)
bool processSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process light box switch properties.
virtual bool EnableLightBox(bool enable)
EnableLightBox Turn on/off on a light box. Must be implemented in the child class.
bool processText(const char *dev, const char *name, char *texts[], char *names[], int n)
Process light box text properties.
virtual bool SetLightBoxBrightness(uint16_t value)
setBrightness Set light level. Must be implemented in the child class, if supported.
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process light box number properties.
LightBoxInterface(DefaultDevice *device)
INDI::PropertySwitch LightSP
INDI::PropertyNumber FilterIntensityNP
virtual ~LightBoxInterface()
void push(WidgetView< T > &&item)
void setState(IPState state)
bool isLabelMatch(const char *otherLabel) const
void apply(const char *format,...) const ATTRIBUTE_FORMAT_PRINTF(2
bool load()
load Attempt to load property values from configuration file.
void save(FILE *f) const
save Save property to configuration file.
bool isNameMatch(const char *otherName) const
bool update(const double values[], const char *const names[], int n)
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
bool update(const ISState states[], const char *const names[], int n)
int findOnSwitchIndex() const
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, ISRule rule, double timeout, IPState state)
bool update(const char *const texts[], const char *const names[], int n)
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
const char * OPTIONS_TAB
OPTIONS_TAB Where all the driver's options are located. Those may include auxiliary controls,...
void IDSnoopDevice(const char *snooped_device, const char *snooped_property)
Function a Driver calls to snoop on another Device. Snooped messages will then arrive via ISSnoopDevi...
const char * findXMLAttValu(XMLEle *ep, const char *name)
Find an XML element's attribute value.
XMLEle * nextXMLEle(XMLEle *ep, int init)
Iterate an XML element for a list of nesetd XML elements.
char * tagXMLEle(XMLEle *ep)
Return the tag of an XML element.
char * pcdataXMLEle(XMLEle *ep)
Return the pcdata of an XML element.
Namespace to encapsulate INDI client, drivers, and mediator classes.