QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | List of all members
QgsGpsdConnection Class Reference

Evaluates NMEA sentences coming from gpsd. More...

#include <qgsgpsdconnection.h>

Inheritance diagram for QgsGpsdConnection:
Inheritance graph
[legend]

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. More...
 
- Public Member Functions inherited from QgsGpsConnection
 QgsGpsConnection (QIODevice *dev)
 Constructor. More...
 
 ~QgsGpsConnection () override
 
bool close ()
 Closes connection to device. More...
 
bool connect ()
 Opens connection to device. More...
 
QgsGpsInformation currentGPSInformation () const
 Returns the current gps information (lat, lon, etc.) More...
 
void setSource (QIODevice *source)
 Sets the GPS source. The class takes ownership of the device class. More...
 
Status status () const
 Returns the status. Possible state are not connected, connected, data received. More...
 

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. More...
 
- Protected Slots inherited from QgsGpsConnection
virtual void parseData ()=0
 Parse available data source content. More...
 
- Protected Member Functions inherited from QgsNmeaConnection
void processGgaSentence (const char *data, int len)
 process GGA sentence More...
 
void processGsaSentence (const char *data, int len)
 process GSA sentence More...
 
void processGsvSentence (const char *data, int len)
 process GSV sentence More...
 
void processRmcSentence (const char *data, int len)
 process RMC sentence More...
 
void processStringBuffer ()
 Splits mStringBuffer into sentences and calls libnmea. More...
 
void processVtgSentence (const char *data, int len)
 process VTG sentence More...
 
- Protected Attributes inherited from QgsNmeaConnection
QString mStringBuffer
 Store data from the device before it is processed. More...
 
- Protected Attributes inherited from QgsGpsConnection
QgsGpsInformation mLastGPSInformation
 Last state of the gps related variables (e.g. position, time, ...) More...
 
QIODevice * mSource = nullptr
 Data source (e.g. serial device, socket, file,...) More...
 
Status mStatus
 Connection status. More...
 

Detailed Description

Evaluates NMEA sentences coming from gpsd.

Definition at line 29 of file qgsgpsdconnection.h.

Constructor & Destructor Documentation

◆ QgsGpsdConnection()

QgsGpsdConnection::QgsGpsdConnection ( const QString &  host,
qint16  port,
const QString &  device 
)

Definition at line 23 of file qgsgpsdconnection.cpp.


The documentation for this class was generated from the following files: