73 bool processNumber(
const char * dev,
const char * name,
double values[],
char * names[],
int n);
76 bool processSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n);
103 bool runCommand(
const std::vector<std::string> &args, std::string *output =
nullptr);
114 bool timedateCall(
const std::vector<std::string> &busctlArgs,
const std::vector<std::string> &gdbusArgs,
115 std::string *output =
nullptr);
121 bool setNTPEnabled(
bool enabled);
124 void disableNTPForGPSTime();
127 void restoreNTPOnDisconnect();
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
Provides interface to implement GPS functionality.
INDI::PropertyNumber LocationNP
void checkGPSState()
checkGPSState Check and update GPS state
DefaultDevice * m_DefaultDevice
bool setSystemTime(time_t &raw_time)
SetSystemTime Update system-wide time.
bool updateProperties()
updateProperties Define or Delete Rotator properties based on the connection status of the base devic...
virtual IPState updateGPS()
updateGPS Retrieve Location & Time from GPS. Update LocationNP & TimeTP properties (value and state) ...
INDI::PropertyNumber PeriodNP
bool processSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process focus switch properties.
INDI::PropertySwitch SystemTimeUpdateSP
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process focus number properties.
virtual bool saveConfigItems(FILE *fp)
saveConfigItems save focuser properties defined in the interface in config file
INDI::Timer m_UpdateTimer
INDI::PropertyText TimeTP
virtual ~GPSInterface()=default
INDI::PropertySwitch RefreshSP
void initProperties(const char *groupName)
Initialize focuser properties. It is recommended to call this function within initProperties() of you...
The Timer class provides repetitive and single-shot timers.
Namespace to encapsulate INDI client, drivers, and mediator classes.