|
QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
A GPS connection subclass based on the Qt Location libraries. More...
#include <qgsqtlocationconnection.h>

Public Member Functions | |
| QgsQtLocationConnection () | |
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... | |
Protected Slots | |
| void | broadcastConnectionAvailable () |
| Needed to make QtLocation detected. More... | |
| void | parseData () override |
| Parse available data source content. More... | |
| void | positionUpdated (const QGeoPositionInfo &info) |
| Called when the position updated. More... | |
| void | satellitesInUseUpdated (const QList< QGeoSatelliteInfo > &satellites) |
| Called when the number of satellites in use is updated. More... | |
| void | satellitesInViewUpdated (const QList< QGeoSatelliteInfo > &satellites) |
| Called when the number of satellites in view is updated. More... | |
Protected Slots inherited from QgsGpsConnection | |
| virtual void | parseData ()=0 |
| Parse available data source content. 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 Attributes inherited from QgsGpsConnection | |
| QgsGpsInformation | mLastGPSInformation |
| Last state of the gps related variables (e.g. position, time, ...) More... | |
| std::unique_ptr< QIODevice > | mSource |
| Data source (e.g. serial device, socket, file,...) More... | |
| Status | mStatus = NotConnected |
| Connection status. More... | |
A GPS connection subclass based on the Qt Location libraries.
Definition at line 51 of file qgsqtlocationconnection.h.
| QgsQtLocationConnection::QgsQtLocationConnection | ( | ) |
Definition at line 25 of file qgsqtlocationconnection.cpp.
|
protectedslot |
Needed to make QtLocation detected.
Definition at line 41 of file qgsqtlocationconnection.cpp.
|
overrideprotectedslot |
Parse available data source content.
Definition at line 57 of file qgsqtlocationconnection.cpp.
|
protectedslot |
Called when the position updated.
Definition at line 51 of file qgsqtlocationconnection.cpp.
|
protectedslot |
Called when the number of satellites in use is updated.
Definition at line 120 of file qgsqtlocationconnection.cpp.
|
protectedslot |
Called when the number of satellites in view is updated.
Definition at line 96 of file qgsqtlocationconnection.cpp.