|
QGIS API Documentation
2.4.0-Chugiak
|
#include <qgsqtlocationconnection.h>


Public Member Functions | |
| QgsQtLocationConnection () | |
| ~QgsQtLocationConnection () | |
Public Member Functions inherited from QgsGPSConnection | |
| QgsGPSConnection (QIODevice *dev) | |
| Constructor. More... | |
| virtual | ~QgsGPSConnection () |
| bool | connect () |
| Opens connection to device. More... | |
| bool | close () |
| Closes connection to device. More... | |
| void | setSource (QIODevice *source) |
| Sets the GPS source. More... | |
| Status | status () const |
| Returns the status. More... | |
| QgsGPSInformation | currentGPSInformation () const |
| Returns the current gps information (lat, lon, etc.) More... | |
Protected Slots | |
| void | broadcastConnectionAvailable () |
| Needed to make QtLocation detected. More... | |
| void | parseData () |
| Parse available data source content. More... | |
| void | positionUpdated (const QGeoPositionInfo &info) |
| Called when the position updated. More... | |
| void | satellitesInViewUpdated (const QList< QGeoSatelliteInfo > &satellites) |
| Called when the number of satellites in view is updated. More... | |
| void | satellitesInUseUpdated (const QList< QGeoSatelliteInfo > &satellites) |
| Called when the number of satellites in use is updated. More... | |
Protected Slots inherited from QgsGPSConnection | |
| virtual void | parseData ()=0 |
| Parse available data source content. More... | |
Private Member Functions | |
| void | startGPS () |
| void | startSatelliteMonitor () |
Private Attributes | |
| QString | mDevice |
| QGeoPositionInfo | mInfo |
| QPointer< QGeoPositionInfoSource > | locationDataSource |
| QPointer< QGeoSatelliteInfoSource > | satelliteInfoSource |
Additional Inherited Members | |
Public Types inherited from QgsGPSConnection | |
| enum | Status { NotConnected, Connected, DataReceived, GPSDataReceived } |
Signals inherited from QgsGPSConnection | |
| void | stateChanged (const QgsGPSInformation &info) |
| void | nmeaSentenceReceived (const QString &substring) |
Protected Attributes inherited from QgsGPSConnection | |
| QIODevice * | mSource |
| Data source (e.g. More... | |
| QgsGPSInformation | mLastGPSInformation |
| Last state of the gps related variables (e.g. More... | |
| Status | mStatus |
| Connection status. More... | |
Definition at line 29 of file qgsqtlocationconnection.h.
| QgsQtLocationConnection::QgsQtLocationConnection | ( | ) |
Definition at line 25 of file qgsqtlocationconnection.cpp.
References broadcastConnectionAvailable(), startGPS(), and startSatelliteMonitor().
| QgsQtLocationConnection::~QgsQtLocationConnection | ( | ) |
Definition at line 37 of file qgsqtlocationconnection.cpp.
References QgsDebugMsg.
|
protectedslot |
Needed to make QtLocation detected.
Definition at line 46 of file qgsqtlocationconnection.cpp.
References QgsGPSConnection::GPSDataReceived, locationDataSource, QgsGPSConnection::mLastGPSInformation, QgsGPSConnection::mStatus, and QgsGPSConnection::stateChanged().
Referenced by QgsQtLocationConnection().
|
protectedslot |
Parse available data source content.
Definition at line 62 of file qgsqtlocationconnection.cpp.
References QgsGPSInformation::direction, QgsGPSInformation::elevation, QgsGPSInformation::fixMode, QgsGPSInformation::fixType, QgsGPSConnection::GPSDataReceived, QgsGPSInformation::hacc, QgsGPSInformation::hdop, QgsGPSInformation::latitude, locationDataSource, QgsGPSInformation::longitude, mInfo, QgsGPSConnection::mLastGPSInformation, QgsGPSConnection::mStatus, QgsGPSInformation::pdop, QgsDebugMsg, QgsGPSInformation::quality, QgsGPSInformation::speed, QgsGPSConnection::stateChanged(), QgsGPSInformation::status, QgsGPSInformation::utcDateTime, QgsGPSInformation::vacc, and QgsGPSInformation::vdop.
Referenced by positionUpdated().
|
protectedslot |
Called when the position updated.
Definition at line 56 of file qgsqtlocationconnection.cpp.
References mInfo, and parseData().
Referenced by startGPS().
|
protectedslot |
Called when the number of satellites in use is updated.
Definition at line 122 of file qgsqtlocationconnection.cpp.
References QgsSatelliteInfo::id, QgsSatelliteInfo::inUse, QgsGPSConnection::mLastGPSInformation, QgsDebugMsg, QgsGPSInformation::satellitesInView, QgsGPSInformation::satellitesUsed, QgsGPSInformation::satInfoComplete, QgsGPSInformation::satPrn, and QgsGPSConnection::stateChanged().
Referenced by startSatelliteMonitor().
|
protectedslot |
Called when the number of satellites in view is updated.
Definition at line 102 of file qgsqtlocationconnection.cpp.
References QgsSatelliteInfo::azimuth, QgsSatelliteInfo::elevation, QgsSatelliteInfo::id, QgsGPSConnection::mLastGPSInformation, QgsDebugMsg, QgsGPSInformation::satellitesInView, QgsGPSInformation::satInfoComplete, QgsSatelliteInfo::signal, and QgsGPSConnection::stateChanged().
Referenced by startSatelliteMonitor().
|
private |
Definition at line 151 of file qgsqtlocationconnection.cpp.
References locationDataSource, positionUpdated(), and QgsDebugMsg.
Referenced by QgsQtLocationConnection().
|
private |
Definition at line 184 of file qgsqtlocationconnection.cpp.
References QgsDebugMsg, satelliteInfoSource, satellitesInUseUpdated(), and satellitesInViewUpdated().
Referenced by QgsQtLocationConnection().
|
private |
Definition at line 63 of file qgsqtlocationconnection.h.
Referenced by broadcastConnectionAvailable(), parseData(), and startGPS().
|
private |
Definition at line 61 of file qgsqtlocationconnection.h.
|
private |
Definition at line 62 of file qgsqtlocationconnection.h.
Referenced by parseData(), and positionUpdated().
|
private |
Definition at line 64 of file qgsqtlocationconnection.h.
Referenced by startSatelliteMonitor().
1.8.7