QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsqtlocationconnection.h
Go to the documentation of this file.
1/***************************************************************************
2 QgsQtLocationConnection.h - description
3 -------------------
4 begin : December 7th, 2011
5 copyright : (C) 2011 by Marco Bernasocchi, Bernawebdesign.ch
6 email : marco at bernawebdesign dot ch
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSQTLOCATIONCONNECTION_H
19#define QGSQTLOCATIONCONNECTION_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23#include "qgsgpsconnection.h"
24
25#include <QtCore/QPointer>
26#include <QtPositioning/QGeoPositionInfoSource>
27#include <QtPositioning/QGeoSatelliteInfo>
28#include <QtPositioning/QGeoSatelliteInfoSource>
29
37{
38 Q_OBJECT
39 public:
41
42 protected slots:
45
47 void parseData() override;
48
53 void positionUpdated( const QGeoPositionInfo &info ) SIP_SKIP;
54
59 void satellitesInViewUpdated( const QList<QGeoSatelliteInfo> &satellites );
60
65 void satellitesInUseUpdated( const QList<QGeoSatelliteInfo> &satellites );
66
67 private:
68 void startGPS();
69 void startSatelliteMonitor();
70 QString mDevice;
71 QGeoPositionInfo mInfo;
72 QPointer<QGeoPositionInfoSource> locationDataSource;
73 QPointer<QGeoSatelliteInfoSource> satelliteInfoSource;
74
75};
76
77#endif // QGSQTLOCATIONCONNECTION_H
virtual void parseData()=0
Parse available data source content.
QgsGpsConnection(QIODevice *dev)
Constructor.
void satellitesInViewUpdated(const QList< QGeoSatelliteInfo > &satellites)
Called when the number of satellites in view is updated.
void broadcastConnectionAvailable()
Needed to make QtLocation detected.
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.
#define SIP_SKIP
Definition qgis_sip.h:134