QtMobility Reference Documentation

QContactGeoLocation Class Reference

The QContactGeoLocation class contains a global location coordinate associated with a contact. More...

 #include <QContactGeoLocation>

Inherits: QContactDetail.

Public Functions

double accuracy () const
double altitude () const
double altitudeAccuracy () const
double heading () const
QString label () const
double latitude () const
double longitude () const
void setAccuracy ( double accuracy )
void setAltitude ( double altitude )
void setAltitudeAccuracy ( double altitudeAccuracy )
void setHeading ( double heading )
void setLabel ( const QString & label )
void setLatitude ( double latitude )
void setLongitude ( double longitude )
void setSpeed ( double speed )
void setTimestamp ( const QDateTime & timestamp )
double speed () const
QDateTime timestamp () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldAccuracy
const QLatin1Constant FieldAltitude
const QLatin1Constant FieldAltitudeAccuracy
const QLatin1Constant FieldHeading
const QLatin1Constant FieldLabel
const QLatin1Constant FieldLatitude
const QLatin1Constant FieldLongitude
const QLatin1Constant FieldSpeed
const QLatin1Constant FieldTimestamp

Detailed Description

The QContactGeoLocation class contains a global location coordinate associated with a contact.

This leaf-class has been part of the default schema since version 1.0 of the Qt Mobility project.

Member Function Documentation

double QContactGeoLocation::accuracy () const

Returns the accuracy (in metres) of the latitude and longitude of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setAccuracy().

double QContactGeoLocation::altitude () const

Returns the altitude (in metres) of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setAltitude().

double QContactGeoLocation::altitudeAccuracy () const

Returns the accuracy of the altitude portion of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setAltitudeAccuracy().

double QContactGeoLocation::heading () const

Returns the heading (at the time of measurement) of the location-aware device that recorded (or was provided) the measurement.

This function was introduced in Qt Mobility 1.0.

See also setHeading().

QString QContactGeoLocation::label () const

Returns the label of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setLabel().

double QContactGeoLocation::latitude () const

Returns the latitude portion of the coordinate (specified in decimal degrees) of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setLatitude().

double QContactGeoLocation::longitude () const

Returns the longitude portion of the coordinate (specified in decimal degrees) of the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setLongitude().

void QContactGeoLocation::setAccuracy ( double accuracy )

Specifies that the latitude and longitude portions of the location stored in the detail are accurate to within accuracy metres.

This function was introduced in Qt Mobility 1.0.

See also accuracy().

void QContactGeoLocation::setAltitude ( double altitude )

Sets the altitude portion of the coordinate (in metres above the ellipsoid) of the location stored in the detail to altitude.

This function was introduced in Qt Mobility 1.0.

See also altitude().

void QContactGeoLocation::setAltitudeAccuracy ( double altitudeAccuracy )

Sets the altitude-accuracy portion of the coordinate (in metres) of the location stored in the detail to altitudeAccuracy.

This function was introduced in Qt Mobility 1.0.

See also altitudeAccuracy().

void QContactGeoLocation::setHeading ( double heading )

Sets the heading portion of the coordinate (in decimal degrees clockwise relative to true north) of the location-aware device at the time of measurement to heading.

This function was introduced in Qt Mobility 1.0.

See also heading().

void QContactGeoLocation::setLabel ( const QString & label )

Sets the label of the location stored in the detail to label.

This function was introduced in Qt Mobility 1.0.

See also label().

void QContactGeoLocation::setLatitude ( double latitude )

Sets the latitude portion of the coordinate (in decimal degrees) of the location stored in the detail to latitude.

This function was introduced in Qt Mobility 1.0.

See also latitude().

void QContactGeoLocation::setLongitude ( double longitude )

Sets the longitude portion of the coordinate (in decimal degrees) of the location stored in the detail to longitude.

This function was introduced in Qt Mobility 1.0.

See also longitude().

void QContactGeoLocation::setSpeed ( double speed )

Sets the speed portion of the coordinate (in metres per second) of the location-aware device at the time of measurement to speed.

This function was introduced in Qt Mobility 1.0.

See also speed().

void QContactGeoLocation::setTimestamp ( const QDateTime & timestamp )

Sets the creation (or first-valid) timestamp of the location information to timestamp.

This function was introduced in Qt Mobility 1.0.

See also timestamp().

double QContactGeoLocation::speed () const

Returns the speed (at the time of measurement) of the location-aware device that recorded (or was provided) the measurement.

This function was introduced in Qt Mobility 1.0.

See also setSpeed().

QDateTime QContactGeoLocation::timestamp () const

Returns the timestamp associated with the location stored in the detail.

This function was introduced in Qt Mobility 1.0.

See also setTimestamp().

Member Variable Documentation

const QLatin1Constant QContactGeoLocation::DefinitionName

The string constant for the definition name of QContactGeoLocation details.

const QLatin1Constant QContactGeoLocation::FieldAccuracy

The field key constant for the value containing the location (latitude/longitude) accuracy.

See also accuracy() and setAccuracy().

const QLatin1Constant QContactGeoLocation::FieldAltitude

The field key constant for the value containing the altitude.

See also altitude() and setAltitude().

const QLatin1Constant QContactGeoLocation::FieldAltitudeAccuracy

The field key constant for the value containing the accuracy of the altitude.

See also altitudeAccuracy() and setAltitudeAccuracy().

const QLatin1Constant QContactGeoLocation::FieldHeading

The field key constant for the value containing the heading.

See also heading() and setHeading().

const QLatin1Constant QContactGeoLocation::FieldLabel

The field key constant for the value containing the location label.

See also label() and setLabel().

const QLatin1Constant QContactGeoLocation::FieldLatitude

The field key constant for the value containing the latitude.

See also latitude() and setLatitude().

const QLatin1Constant QContactGeoLocation::FieldLongitude

The field key constant for the value containing the longitude.

See also longitude() and setLongitude().

const QLatin1Constant QContactGeoLocation::FieldSpeed

The field key constant for the value containing the speed.

See also speed() and setSpeed().

const QLatin1Constant QContactGeoLocation::FieldTimestamp

The field key constant for the value containing the timestamp of the location information.

See also timestamp() and setTimestamp().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.