19 #ifndef QVCT_CDEVICEGPSDGPS_HPP
20 #define QVCT_CDEVICEGPSDGPS_HPP
24 #if GPSD_API_MAJOR_VERSION < 4
25 #error "Unsupported GPSD API version (<4)"
31 #include <QDomElement>
32 #include <QSocketNotifier>
34 #include <QXmlStreamWriter>
104 void parseQVCT(
const QDomElement& _rqDomElement );
105 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter )
const;
@ GPSD_GPS
GPSD daemon (GPS mode)
GPSD daemon (GPS mode) navigation device.
struct gps_data_t sGpsData
GPSD data.
bool bPaused
Pause status.
virtual CDeviceDriver::EDriver getDriver() const
Returns the device's driver ID.
void parseQVCT(const QDomElement &_rqDomElement)
Retrieves the device's configuration from the given QVCT source (file)
CDeviceGpsdGps(const QString &_rqsName)
virtual int getCapabilities() const
Returns the device's capabilities.
void setHost(const QString &_rqsHost)
virtual ~CDeviceGpsdGps()
QVCT::EStatus setOperatingMode(CDevice::EOperatingMode _eOperatingMode)
Sets the device's operating mode.
QString qsSource
Source (filter)
QVCT::EStatus start()
Stop the device.
struct gps_data_t * psGpsData
GPSD data pointer.
virtual void showDetail()
Displays the device's details (in the appropriate widget/view)
QString qsHost
Network host.
virtual void showEdit()
Displays the device's edit (configuration) widget/view.
QVCT::EStatus stop()
Start the device.
void setSource(const QString &_rqsSource)
QVCT::EStatus pause()
Pause the device.
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter) const
Stores the device's configuration to the given QVCT destination (file)
QSocketNotifier * pqSocketNotifier
Socket notifier.
CDevice::EOperatingMode status()
Returns the device's status (operating mode)
void slotProcessData(int)
Slots to process device data.
Generic navigation device (GPS, speedometer, compass, etc.)
@ SKYVIEW
Device emits 'newDataSkyView' signal.
@ FIX
Device emits 'newDataFix' signal.
EOperatingMode
Device operating mode (stop, start, pause)