44 m_Capabilities = capabilities;
61 if (m_DefaultDevice->isConnected())
63 m_DefaultDevice->defineProperty(
ParkCapSP);
69 m_DefaultDevice->deleteProperty(
ParkCapSP);
86 auto prevSwitch =
ParkCapSP.findOnSwitchIndex();
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
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.
*brief user defined string literal for JSON values *sa std::size_t n
Namespace to encapsulate INDI client, drivers, and mediator classes.