QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | List of all members
QgsQtLocationConnection Class Reference

#include <qgsqtlocationconnection.h>

Inheritance diagram for QgsQtLocationConnection:
Inheritance graph
[legend]

Public Member Functions

 QgsQtLocationConnection ()
 ~QgsQtLocationConnection ()
- Public Member Functions inherited from QgsGPSConnection
 QgsGPSConnection (QIODevice *dev)
 Constructor.
virtual ~QgsGPSConnection ()
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.
Status status () const
 Returns the status.

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 satellitesInUseUpdated (const QList< QGeoSatelliteInfo > &satellites)
 Called when the number of satellites in use is updated.
void satellitesInViewUpdated (const QList< QGeoSatelliteInfo > &satellites)
 Called when the number of satellites in view is updated.
- Protected Slots inherited from QgsGPSConnection
virtual void parseData ()=0
 Parse available data source content.

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.
QIODevice * mSource
 Data source (e.g.
Status mStatus
 Connection status.

Detailed Description

Definition at line 29 of file qgsqtlocationconnection.h.

Constructor & Destructor Documentation

QgsQtLocationConnection::QgsQtLocationConnection ( )

Definition at line 25 of file qgsqtlocationconnection.cpp.

QgsQtLocationConnection::~QgsQtLocationConnection ( )

Definition at line 37 of file qgsqtlocationconnection.cpp.

Member Function Documentation

void QgsQtLocationConnection::broadcastConnectionAvailable ( )
protectedslot

Needed to make QtLocation detected.

Definition at line 46 of file qgsqtlocationconnection.cpp.

void QgsQtLocationConnection::parseData ( )
protectedslot

Parse available data source content.

Definition at line 62 of file qgsqtlocationconnection.cpp.

void QgsQtLocationConnection::positionUpdated ( const QGeoPositionInfo &  info)
protectedslot

Called when the position updated.

Note
not available in python binding

Definition at line 56 of file qgsqtlocationconnection.cpp.

void QgsQtLocationConnection::satellitesInUseUpdated ( const QList< QGeoSatelliteInfo > &  satellites)
protectedslot

Called when the number of satellites in use is updated.

Note
not available in python bindings on android

Definition at line 122 of file qgsqtlocationconnection.cpp.

void QgsQtLocationConnection::satellitesInViewUpdated ( const QList< QGeoSatelliteInfo > &  satellites)
protectedslot

Called when the number of satellites in view is updated.

Note
not available in python bindings on android

Definition at line 102 of file qgsqtlocationconnection.cpp.


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