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

#include <qgsqtlocationconnection.h>

Inheritance diagram for QgsQtLocationConnection:
Inheritance graph
[legend]
Collaboration diagram for QgsQtLocationConnection:
Collaboration graph
[legend]

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...
 

Detailed Description

Definition at line 29 of file qgsqtlocationconnection.h.

Constructor & Destructor Documentation

QgsQtLocationConnection::QgsQtLocationConnection ( )
QgsQtLocationConnection::~QgsQtLocationConnection ( )

Definition at line 37 of file qgsqtlocationconnection.cpp.

References QgsDebugMsg.

Member Function Documentation

void QgsQtLocationConnection::broadcastConnectionAvailable ( )
protectedslot
void QgsQtLocationConnection::parseData ( )
protectedslot
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.

References mInfo, and parseData().

Referenced by startGPS().

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

Definition at line 151 of file qgsqtlocationconnection.cpp.

References locationDataSource, positionUpdated(), and QgsDebugMsg.

Referenced by QgsQtLocationConnection().

void QgsQtLocationConnection::startSatelliteMonitor ( )
private

Member Data Documentation

QPointer<QGeoPositionInfoSource> QgsQtLocationConnection::locationDataSource
private

Definition at line 63 of file qgsqtlocationconnection.h.

Referenced by broadcastConnectionAvailable(), parseData(), and startGPS().

QString QgsQtLocationConnection::mDevice
private

Definition at line 61 of file qgsqtlocationconnection.h.

QGeoPositionInfo QgsQtLocationConnection::mInfo
private

Definition at line 62 of file qgsqtlocationconnection.h.

Referenced by parseData(), and positionUpdated().

QPointer<QGeoSatelliteInfoSource> QgsQtLocationConnection::satelliteInfoSource
private

Definition at line 64 of file qgsqtlocationconnection.h.

Referenced by startSatelliteMonitor().


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