diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-08-06 16:22:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-22 08:48:20 +0200 |
commit | 7a53f30ee48b1073333cd40bed1ab7473e3bf1f6 (patch) | |
tree | b29398e02900fb68d1f706e2552a86e0ba5567a2 /src/plugins/position/gypsy | |
parent | 23544d87a196a7306f87a09ca799baada6c45729 (diff) | |
download | qtlocation-7a53f30ee48b1073333cd40bed1ab7473e3bf1f6.tar.gz |
QGeoAreaMonitor becomes loadable via plugins.
The polling-based default implementation is separated out into its own
plugin.
Task-number: QTBUG-31960
Change-Id: Ife25f6a83dd51f32fcd9ee3bfde1ca51291c78e4
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/plugins/position/gypsy')
3 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/position/gypsy/plugin.json b/src/plugins/position/gypsy/plugin.json index faa990cc..b3ecc0f7 100644 --- a/src/plugins/position/gypsy/plugin.json +++ b/src/plugins/position/gypsy/plugin.json @@ -3,5 +3,6 @@ "Provider": "gypsy", "Position": false, "Satellite": true, + "Monitor" : false, "Priority": 1000 } diff --git a/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.cpp b/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.cpp index bae882dd..77c8d1d7 100644 --- a/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.cpp +++ b/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.cpp @@ -57,3 +57,9 @@ QGeoSatelliteInfoSource *QGeoPositionInfoSourceFactoryGypsy::satelliteInfoSource } return src; } + +QGeoAreaMonitor *QGeoPositionInfoSourceFactoryGypsy::areaMonitor(QObject *parent) +{ + Q_UNUSED(parent); + return 0; +} diff --git a/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.h b/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.h index 3f3a2259..f44d47f7 100644 --- a/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.h +++ b/src/plugins/position/gypsy/qgeopositioninfosourcefactory_gypsy.h @@ -43,8 +43,7 @@ #define QGEOPOSITIONINFOSOURCEFACTORY_GYPSY_H #include <QObject> -#include "qgeopositioninfosource.h" -#include "qgeopositioninfosourcefactory.h" +#include <qgeopositioninfosourcefactory.h> class QGeoPositionInfoSourceFactoryGypsy : public QObject, public QGeoPositionInfoSourceFactory { @@ -56,6 +55,7 @@ class QGeoPositionInfoSourceFactoryGypsy : public QObject, public QGeoPositionIn public: QGeoPositionInfoSource *positionInfoSource(QObject *parent); QGeoSatelliteInfoSource *satelliteInfoSource(QObject *parent); + QGeoAreaMonitor *areaMonitor(QObject *parent); }; #endif |