QNmeaWhereabouts Class Reference
|
Constant | Value | Description |
---|---|---|
QNmeaWhereabouts::InvalidMode | 0 | Updates cannot be provided in this mode. This is the default mode. |
QNmeaWhereabouts::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). |
QNmeaWhereabouts::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 QNmeaWhereabouts instance with the given parent with the update mode set to QNmeaWhereabouts::InvalidMode.
Constructs a QNmeaWhereabouts instance with the given parent and updateMode.
Destroys the whereabouts instance.
Notifies the object that new data is available for reading from the source device.
Usually you do not need to call this function. It is only necessary if the source device does not emit QIODevice::readyRead().
See also setSourceDevice() and QSocketNotifier.
Requests that updated() be emitted with the current whereabouts if possible. This can be called regardless of whether startUpdates() has already been called.
This is useful if you need to retrieve the current whereabouts but you do not need the periodic updates offered by startUpdates(). Calling this method will result in only a single updated() signal.
If the state is currently QWhereabouts::NotAvailable, the object will first be initialized and will then provide an update when it is in the QWhereabouts::PositionFixAcquired state.
Reimplemented from QWhereabouts.
See also startUpdates() and lastUpdate().
Sets the NMEA data source to source. 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: If source does not emit QIODevice::readyRead() — for example, if it is a QFile object — you must call newDataAvailable() when data is available for reading.
See also sourceDevice().
Sets the update mode to mode.
The update mode can only be set once and must be set before calling startUpdates() or requestUpdate().
See also updateMode().
Returns the NMEA data source.
See also setSourceDevice().
Starts emitting updated() with the interval specified by updateInterval(), or less frequently if updates are not available at a particular time. If updateInterval() is 0, updated() is emitted as soon as a valid update becomes available.
If startUpdates() has already been called, this restarts with updateInterval() as the new update interval.
If the state is currently QWhereabouts::NotAvailable, the object will first be initialized and will begin to provide updates once it is in the QWhereabouts::PositionFixAcquired state.
Reimplemented from QWhereabouts.
Stops emitting updated() at regular intervals.
Reimplemented from QWhereabouts.
See also startUpdates().
Returns the update mode. The default mode is QNmeaWhereabouts::InvalidMode.
See also setUpdateMode().
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 qtextended4.4 | |
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