2424
2525#include < QtCore/QPointer>
2626
27+ #ifndef SIP_RUN
2728#if defined(HAVE_QT_MOBILITY_LOCATION )
2829#include < QtLocation/QGeoPositionInfoSource>
2930#include < QtLocation/QGeoSatelliteInfo>
@@ -35,6 +36,10 @@ QTM_USE_NAMESPACE
3536#include < QtPositioning/QGeoSatelliteInfo>
3637#include < QtPositioning/QGeoSatelliteInfoSource>
3738#endif
39+ #endif
40+
41+ SIP_FEATURE ( MOBILITY_LOCATION )
42+ SIP_IF_FEATURE ( MOBILITY_LOCATION )
3843
3944/* *
4045 * \ingroup core
@@ -56,19 +61,27 @@ class CORE_EXPORT QgsQtLocationConnection: public QgsGPSConnection
5661 void parseData ();
5762
5863 /* * Called when the position updated.
59- * \note not available in Python binding
64+ * \note not available in Python bindings
6065 */
61- void positionUpdated ( const QGeoPositionInfo &info );
66+ void positionUpdated ( const QGeoPositionInfo &info ) SIP_SKIP;
67+
68+ #ifdef SIP_RUN
69+ SIP_IF_FEATURE ( !ANDROID )
70+ #endif
6271
6372 /* * Called when the number of satellites in view is updated.
6473 * \note not available in Python bindings on android
6574 */
66- void satellitesInViewUpdated ( const QList<QGeoSatelliteInfo> &satellites ) SIP_SKIP ;
75+ void satellitesInViewUpdated ( const QList<QGeoSatelliteInfo> &satellites );
6776
6877 /* * Called when the number of satellites in use is updated.
6978 * \note not available in Python bindings on android
7079 */
71- void satellitesInUseUpdated ( const QList<QGeoSatelliteInfo> &satellites ) SIP_SKIP;
80+ void satellitesInUseUpdated ( const QList<QGeoSatelliteInfo> &satellites );
81+
82+ #ifdef SIP_RUN
83+ SIP_END
84+ #endif
7285
7386 private:
7487 void startGPS ();
@@ -80,4 +93,6 @@ class CORE_EXPORT QgsQtLocationConnection: public QgsGPSConnection
8093
8194};
8295
96+ SIP_END // MOBILITY_LOCATION
97+
8398#endif // QGSQTLOCATIONCONNECTION_H
0 commit comments