Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QWhereaboutsUpdate class contains the global position and other related information received at a particular point in time. More...
#include <QWhereaboutsUpdate>
The QWhereaboutsUpdate class contains the global position and other related information received at a particular point in time.
A QWhereaboutsUpdate object has, at a minimum, a coordinate value and a timestamp. It may also have course and speed measurements and estimates of the accuracy of the provided data.
Use dataValidityFlags() to determine whether values have been set for a particular data type.
See also QWhereabouts and QWhereaboutsCoordinate.
Defines the types of data that may be included in an update.
Constant | Value | Description |
---|---|---|
QWhereaboutsUpdate::GroundSpeed | 0x2 | The speed over ground. |
QWhereaboutsUpdate::VerticalSpeed | 0x4 | The vertical speed. |
QWhereaboutsUpdate::Course | 0x8 | The course/track made good (i.e. bearing to true north). |
QWhereaboutsUpdate::HorizontalAccuracy | 0x10 | The horizontal accuracy. |
QWhereaboutsUpdate::VerticalAccuracy | 0x20 | The vertical accuracy |
QWhereaboutsUpdate::GroundSpeedAccuracy | 0x40 | Accuracy of the speed over ground value. |
QWhereaboutsUpdate::VerticalSpeedAccuracy | 0x80 | Accuracy over the vertical speed value. |
QWhereaboutsUpdate::CourseAccuracy | 0x100 | Accuracy of the course/track made good value. |
QWhereaboutsUpdate::UpdateTimeAccuracy | 0x200 | Accuracy of the update time value. |
The DataTypes type is a typedef for QFlags<DataType>. It stores an OR combination of DataType values.
See also dataValidityFlags().
Defines the available position fix statuses for a position update. A global position cannot be accurately determined until a position fix is acquired.
Constant | Value | Description |
---|---|---|
QWhereaboutsUpdate::FixStatusUnknown | 0 | The position fix status cannot be determined from the position update. |
QWhereaboutsUpdate::FixNotAcquired | 1 | No position fix has been acquired at the time of the update. |
QWhereaboutsUpdate::FixAcquired | 2 | A position fix has been acquired at the time of the update. |
Constructs a null update.
Constructs an update with the given coordinate and dateTime.
Constructs an update from the contents of other.
Destroys an update.
Clears all attribute values for this update.
Returns the coordinate for this update.
See also setCoordinate().
Returns the course (i.e. bearing to true north, in degrees).
Use dataValidityFlags() to check whether this value has been set.
See also setCourse().
Returns the estimated accuracy of the course() value (in degrees).
Use dataValidityFlags() to check whether this value has been set.
See also setCourseAccuracy().
Returns a set of flags that indicate whether data has been set for a particular update attribute.
Returns the parsed form of the NMEA data in nmea and sets fixStatus according to the parsed data. Returns a null update if nmea could not be parsed, or if it has an invalid checksum.
This function is able to parse GGA, GLL, RMC, VTG and ZDA sentences.
Some points to note:
Returns the speed over ground, in meters/sec.
Use dataValidityFlags() to check whether this value has been set.
See also setGroundSpeed().
Returns the estimated accuracy of the groundSpeed() value (in meters/sec).
Use dataValidityFlags() to check whether this value has been set.
See also setGroundSpeedAccuracy().
Returns the estimated horizontal accuracy (in meters).
Use dataValidityFlags() to check whether this value has been set.
See also setHorizontalAccuracy().
Returns true if no attributes are set for this update.
Sets the coordinate for this update to coordinate.
See also coordinate().
Sets the course (i.e. bearing to true north, in degrees) to course.
See also course().
Sets the estimated accuracy of the course() value (in degrees) to accuracy.
See also courseAccuracy().
Sets the speed over ground (in meters/sec) to speed.
See also groundSpeed().
Sets the estimated accuracy of the groundSpeed() value (in meters/sec) to accuracy.
See also groundSpeedAccuracy().
Sets the estimated horizontal accuracy (in meters) to accuracy.
See also horizontalAccuracy().
Sets the date on which this update was received to date.
See also updateDate().
Sets the date and time at which this update was received to dateTime.
See also updateDateTime() and updateDate().
Sets the time at which this update was received to time, which should be in UTC time.
See also updateTime().
Sets the estimated accuracy of the updateTime() value (in seconds) to accuracy.
See also updateTimeAccuracy().
Sets the estimated vertical accuracy (in meters) to accuracy.
See also verticalAccuracy().
Sets the vertical speed (in meters/sec) to speed.
See also verticalSpeed().
Sets the estimated accuracy of the verticalSpeed() value (in meters/sec) to accuracy.
See also verticalSpeedAccuracy().
Returns the date on which this update was received.
See also setUpdateDate().
Returns the date and time at which this update was received.
Returns an invalid value if the updateDate() or updateTime() is not valid.
See also setUpdateDateTime() and setUpdateDate().
Returns the time at which this update was received.
See also setUpdateTime().
Returns the estimated accuracy of the updateTime() value (in seconds).
Use dataValidityFlags() to check whether this value has been set.
See also setUpdateTimeAccuracy().
Returns the estimated vertical accuracy (in meters).
Use dataValidityFlags() to check whether this value has been set.
See also setVerticalAccuracy().
Returns the vertical speed, in meters/sec.
Use dataValidityFlags() to check whether this value has been set.
See also setVerticalSpeed().
Returns the estimated accuracy of the verticalSpeed() value (in meters/sec).
Use dataValidityFlags() to check whether this value has been set.
See also setVerticalSpeedAccuracy().
Assigns other to this update and returns a reference to this update.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |