|
QGIS API Documentation 3.28.14-Firenze (exported)
|
Evaluates NMEA sentences coming from gpsd. More...
#include <qgsgpsdconnection.h>

Public Member Functions | |
| QgsGpsdConnection (const QString &host, qint16 port, const QString &device) | |
Public Member Functions inherited from QgsNmeaConnection | |
| QgsNmeaConnection (QIODevice *device) | |
| Constructs a QgsNmeaConnection with given device. | |
Public Member Functions inherited from QgsGpsConnection | |
| QgsGpsConnection (QIODevice *dev) | |
| Constructor. | |
| ~QgsGpsConnection () override | |
| bool | close () |
| Closes connection to device. | |
| bool | connect () |
| Opens connection to device. | |
| QgsGpsInformation | currentGPSInformation () const |
| Returns the current gps information (lat, lon, etc.) | |
| void | setSource (QIODevice *source) |
| Sets the GPS source. The class takes ownership of the device class. | |
| Status | status () const |
| Returns the status. Possible state are not connected, connected, data received. | |
Additional Inherited Members | |
Public Types inherited from QgsGpsConnection | |
| enum | Status { NotConnected , Connected , DataReceived , GPSDataReceived } |
Signals inherited from QgsGpsConnection | |
| void | nmeaSentenceReceived (const QString &substring) |
| void | stateChanged (const QgsGpsInformation &info) |
Protected Slots inherited from QgsNmeaConnection | |
| void | parseData () override |
| Parse available data source content. | |
Protected Slots inherited from QgsGpsConnection | |
| virtual void | parseData ()=0 |
| Parse available data source content. | |
Protected Member Functions inherited from QgsNmeaConnection | |
| void | processGgaSentence (const char *data, int len) |
| process GGA sentence | |
| void | processGsaSentence (const char *data, int len) |
| process GSA sentence | |
| void | processGstSentence (const char *data, int len) |
| process GST sentence | |
| void | processGsvSentence (const char *data, int len) |
| process GSV sentence | |
| void | processHchdgSentence (const char *data, int len) |
| process HCHDG sentence | |
| void | processHchdtSentence (const char *data, int len) |
| process HCHDT sentence | |
| void | processHdtSentence (const char *data, int len) |
| process HDT sentence | |
| void | processRmcSentence (const char *data, int len) |
| process RMC sentence | |
| void | processStringBuffer () |
| Splits mStringBuffer into sentences and calls libnmea. | |
| void | processVtgSentence (const char *data, int len) |
| process VTG sentence | |
Protected Attributes inherited from QgsNmeaConnection | |
| QString | mStringBuffer |
| Store data from the device before it is processed. | |
Protected Attributes inherited from QgsGpsConnection | |
| QgsGpsInformation | mLastGPSInformation |
| Last state of the gps related variables (e.g. position, time, ...) | |
| std::unique_ptr< QIODevice > | mSource |
| Data source (e.g. serial device, socket, file,...) | |
| Status | mStatus = NotConnected |
| Connection status. | |
Evaluates NMEA sentences coming from gpsd.
Definition at line 30 of file qgsgpsdconnection.h.
| QgsGpsdConnection::QgsGpsdConnection | ( | const QString & | host, |
| qint16 | port, | ||
| const QString & | device | ||
| ) |
Definition at line 23 of file qgsgpsdconnection.cpp.