44 m_Capabilities = capabilities;
const char * getDeviceName() const
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool deleteProperty(const char *propertyName)
Delete a property and unregister it. It will also be deleted from all clients.
void defineProperty(INumberVectorProperty *property)
virtual IPState ParkCap()
Park dust cap (close cover). Must be implemented by child.
DustCapInterface(DefaultDevice *device)
INDI::PropertySwitch ParkCapSP
virtual IPState AbortCap()
Abort motion. Must be implemented by child.
virtual IPState UnParkCap()
unPark dust cap (open cover). Must be implemented by child.
bool updateProperties()
updateProperties Defines or Delete properties based on default device connection status
INDI::PropertySwitch AbortCapSP
void initProperties(const char *group, uint32_t capabilities=0)
Initialize dust cap properties. It is recommended to call this function within initProperties() of yo...
bool processSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process dust cap switch properties.
void setState(IPState state)
void apply(const char *format,...) const ATTRIBUTE_FORMAT_PRINTF(2
bool isNameMatch(const char *otherName) const
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)
Namespace to encapsulate INDI client, drivers, and mediator classes.