QNmeaPositionInfoSource Class ReferenceThe QNmeaPositionInfoSource class provides positional information using a NMEA data source. More... #include <QNmeaPositionInfoSource> Inherits QGeoPositionInfoSource. Public Types
Public Functions
Reimplemented Public Functions
Public Slots
Additional Inherited Members
Detailed DescriptionThe QNmeaPositionInfoSource class provides positional information using a NMEA data source. NMEA is a commonly used protocol for the specification of one's global position at a certain point in time. The QNmeaPositionInfoSource class reads NMEA data and uses it to provide positional data in the form of QGeoPositionInfo objects. A QNmeaPositionInfoSource instance operates in either RealTimeMode or SimulationMode. These modes allow NMEA data to be read from either a live source of positional data, or replayed for simulation purposes from previously recorded NMEA data. Use setUpdateMode() to define the update mode, and setDevice() to set the source of NMEA data. Use startUpdates() to receive regular position updates through the updated() signal, and stopUpdates() to stop these updates. If you only require updates occasionally, you can call requestUpdate() as required, instead of startUpdates() and stopUpdates(). Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QNmeaPositionInfoSource::RealTimeMode | 1 | Positional data is read and distributed from the data source as it becomes available. Use this mode if you are using a live source of positional data (for example, a GPS hardware device). |
QNmeaPositionInfoSource::SimulationMode | 2 | The data and time information in the NMEA source data is used to provide positional updates at the rate at which the data was originally recorded. if the data source contains previously recorded NMEA data and you want to replay the data for simulation purposes. |
Constructs a QNmeaPositionInfoSource instance with the given parent and updateMode.
Destroys the position source.
Returns the NMEA data source.
See also setDevice().
Reimplemented from QGeoPositionInfoSource::lastKnownPosition().
Reimplemented from QGeoPositionInfoSource::minimumUpdateInterval().
Reimplemented from QGeoPositionInfoSource::requestUpdate().
Sets the NMEA data source to device. If the device is not open, it will be opened in QIODevice::ReadOnly mode.
The source device can only be set once and must be set before calling startUpdates() or requestUpdate().
Note: The device must emit QIODevice::readyRead() for the source to be notified when data is available for reading.
See also device().
Reimplemented from QGeoPositionInfoSource::setUpdateInterval().
Reimplemented from QGeoPositionInfoSource::startUpdates().
Reimplemented from QGeoPositionInfoSource::stopUpdates().
Reimplemented from QGeoPositionInfoSource::supportedPositioningMethods().
Returns the update mode. The default mode is QNmeaPositionInfoSource::InvalidMode.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.0-tp | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com