![]() |
Home · All Classes · All Functions · | ![]() |
The QGeoSatelliteInfoSource class is an abstract base class for the distribution of satellite information updates. More...
#include <QGeoSatelliteInfoSource>
Inherits QObject.
QGeoSatelliteInfoSource ( QObject * parent ) |
virtual void | requestUpdate ( int timeout = 0 ) = 0 |
virtual void | startUpdates () = 0 |
virtual void | stopUpdates () = 0 |
void | requestTimeout () |
void | satellitesInUseUpdated ( const QList<QGeoSatelliteInfo> & satellites ) |
void | satellitesInViewUpdated ( const QList<QGeoSatelliteInfo> & satellites ) |
QGeoSatelliteInfoSource * | createDefaultSource ( QObject * parent ) |
The QGeoSatelliteInfoSource class is an abstract base class for the distribution of satellite information updates.
The static function QGeoSatelliteInfoSource::createDefaultSource() creates a default satellite data source that is appropriate for the platform, if one is available. Otherwise, QGeoSatelliteInfoSource can be subclassed to create an appropriate custom source of satellite data.
Call startUpdates() and stopUpdates() to start and stop regular updates, or requestUpdate() to request a single update. When an update is available, satellitesInViewUpdated() and/or satellitesInUseUpdated() will be emitted.
Warning: On Windows CE it is not possible to detect if a device is GPS enabled. The default satellite source on a Windows CE device without GPS support will never provide any satellite data.
Creates a source with the specified parent.
Creates and returns a source with the specified parent that reads from the system's default source of satellite update information.
Returns 0 if the system has no default source.
Emitted if requestUpdate() was called and the current satellite information could not be retrieved within the specified timeout.
Attempts to get the current satellite information and emit satellitesInViewUpdated() and satellitesInUseUpdated() with this information. If the current position cannot be found within the given timeout (in milliseconds), requestTimeout() is emitted.
If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.
This does nothing if another update request is in progress. However it can be called even if startUpdates() has already been called and regular updates are in progress.
If startUpdates() or requestUpdate() is called, this signal is emitted when an update is available on the number of satellites that are currently in use.
These are the satellites that are used to get a "fix" - that is, those used to determine the current position.
The satellites parameter holds the satellites currently in use.
If startUpdates() or requestUpdate() is called, this signal is emitted when an update is available on the satellites that are currently in view.
The satellites parameter holds the satellites currently in view.
Starts emitting updates at regular intervals. The updates will be provided whenever new satellite information becomes available.
See also satellitesInViewUpdated() and satellitesInUseUpdated().
Stops emitting updates at regular intervals.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |