| 
    QGIS API Documentation
    2.0.1-Dufour
    
   | 
 
#include <qgsqtlocationconnection.h>


Public Member Functions | |
| QgsQtLocationConnection () | |
| ~QgsQtLocationConnection () | |
  Public Member Functions inherited from QgsGPSConnection | |
| QgsGPSConnection (QIODevice *dev) | |
| Constructor.   | |
| virtual | ~QgsGPSConnection () | 
| bool | connect () | 
| Opens connection to device.   | |
| bool | close () | 
| Closes connection to device.   | |
| void | setSource (QIODevice *source) | 
| Sets the GPS source.   | |
| Status | status () const | 
| Returns the status.   | |
| QgsGPSInformation | currentGPSInformation () const | 
| Returns the current gps information (lat, lon, etc.)   | |
Protected Slots | |
| void | broadcastConnectionAvailable () | 
| Needed to make QtLocation detected.   | |
| void | parseData () | 
| Parse available data source content.   | |
| void | positionUpdated (const QGeoPositionInfo &info) | 
| Called when the position updated.   | |
| void | satellitesInViewUpdated (const QList< QGeoSatelliteInfo > &satellites) | 
| Called when the number of satellites in view is updated.   | |
| void | satellitesInUseUpdated (const QList< QGeoSatelliteInfo > &satellites) | 
| Called when the number of satellites in use is updated.   | |
  Protected Slots inherited from QgsGPSConnection | |
| virtual void | parseData ()=0 | 
| Parse available data source content.   | |
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.   | |
| QgsGPSInformation | mLastGPSInformation | 
| Last state of the gps related variables (e.g.   | |
| Status | mStatus | 
| Connection status.   | |
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 QgsGPSConnection::connect(), locationDataSource, positionUpdated(), and QgsDebugMsg.
Referenced by QgsQtLocationConnection().
      
  | 
  private | 
Definition at line 184 of file qgsqtlocationconnection.cpp.
References QgsGPSConnection::connect(), QgsDebugMsg, satelliteInfoSource, satellitesInUseUpdated(), and satellitesInViewUpdated().
Referenced by QgsQtLocationConnection().
      
  | 
  private | 
Definition at line 59 of file qgsqtlocationconnection.h.
Referenced by broadcastConnectionAvailable(), parseData(), and startGPS().
      
  | 
  private | 
Definition at line 57 of file qgsqtlocationconnection.h.
      
  | 
  private | 
Definition at line 58 of file qgsqtlocationconnection.h.
Referenced by parseData(), and positionUpdated().
      
  | 
  private | 
Definition at line 60 of file qgsqtlocationconnection.h.
Referenced by startSatelliteMonitor().
 1.8.1.2