diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-08-26 09:35:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-17 11:38:14 +0200 |
commit | 0ed9f7496656fa0ea52d703c7fddff26c2192857 (patch) | |
tree | ec0d4d7dc638e8018a8896a0b62cc91840c9c23d /src/positioning/qgeosatelliteinfosource.h | |
parent | 87ce030b7b7336e561779dc9516d5ae2242a5d5f (diff) | |
download | qtlocation-0ed9f7496656fa0ea52d703c7fddff26c2192857.tar.gz |
Improve area monitoring API.
1.) QGeoAreaMonitor renamed to QGeoAreaMonitorSource
2.) Add new QGeoAreaMonitorInfo data type encpsulating individual areas to be monitored
3.) Port positionpoll plug-in to new features
4.) Make positionpoll monitor thread safe
4.) Extend and fix the QGeoAreaMonitor unit test
5.) Fix documentation.
Task-number: QTBUG-31711
Change-Id: Icfc982de4753d2f43cb4d15c234eb7b7c039a0c4
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/positioning/qgeosatelliteinfosource.h')
-rw-r--r-- | src/positioning/qgeosatelliteinfosource.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/positioning/qgeosatelliteinfosource.h b/src/positioning/qgeosatelliteinfosource.h index 35aa2b33..2b25aec7 100644 --- a/src/positioning/qgeosatelliteinfosource.h +++ b/src/positioning/qgeosatelliteinfosource.h @@ -57,7 +57,7 @@ class Q_POSITIONING_EXPORT QGeoSatelliteInfoSource : public QObject public: enum Error { - AccessError, + AccessError = 0, ClosedError, /* 1 */ UnknownSourceError = -1 }; @@ -70,6 +70,8 @@ public: static QGeoSatelliteInfoSource *createSource(const QString &sourceName, QObject *parent); static QStringList availableSources(); + QString sourceName() const; + virtual void setUpdateInterval(int msec); int updateInterval() const; virtual int minimumUpdateInterval() const = 0; |