KGAPI2::Location Class Reference

#include <location.h>

Inheritance diagram for KGAPI2::Location:

Public Member Functions

 Location ()
 Location (float latitude, float longitude)
 Location (const Location &other)
 ~Location () override
qint32 accuracy () const
qint32 altitude () const
qint32 altitudeAccuracy () const
qint32 heading () const
void setAccuracy (qint32 accuracy)
void setAltitude (qint32 altitude)
void setAltitudeAccuracy (qint32 altitudeAccuracy)
void setHeading (qint32 heading)
void setSpeed (qint32 speed)
void setTimestamp (qulonglong timestamp)
qint32 speed () const
qulonglong timestamp () const
- Public Member Functions inherited from KGAPI2::Object
 Object ()
 Object (const Object &other)
virtual ~Object ()
QString etag () const
bool operator== (const Object &other) const
void setEtag (const QString &etag)
- Public Member Functions inherited from KContacts::Geo
 Geo (float latitude, float longitude)
 Geo (const Geo &other)
void clear ()
bool isValid () const
float latitude () const
float longitude () const
bool operator!= (const Geo &other) const
Geooperator= (const Geo &other)
bool operator== (const Geo &other) const
void setLatitude (float latitude)
void setLongitude (float longitude)
QString toString () const

Detailed Description

Represents a single record about geographical location provided by Google Latitude service.

Jan Grulich grulj[email protected][email protected][email protected]ail.c[email protected]om

Definition at line 29 of file location.h.

Constructor & Destructor Documentation

Location::Location ( )


Definition at line 44 of file location.cpp.

Location::Location ( float  latitude,
float  longitude 



Definition at line 56 of file location.cpp.

Location::Location ( const Location other)

Copy constructor.

Definition at line 50 of file location.cpp.

Location::~Location ( )


Definition at line 62 of file location.cpp.

Member Function Documentation

qint32 Location::accuracy ( ) const

Returns accuracy of the latitude and longitude in meters.

Returns -1 when accuracy is not defined.

Definition at line 72 of file location.cpp.

qint32 Location::altitude ( ) const

Returns altitude of this location.

Returns 0 when altitude is not defined.

Definition at line 87 of file location.cpp.

qint32 Location::altitudeAccuracy ( ) const

Returns altitude accuracy.

Returns -1 when altitude accuracy is not defined.

Definition at line 92 of file location.cpp.

qint32 Location::heading ( ) const

Returns direction of travel of the user when this location was recorded.

Returns -1 when heading is not defined.

Definition at line 82 of file location.cpp.

void Location::setAccuracy ( qint32  accuracy)

Sets accuracy of this location.

Definition at line 102 of file location.cpp.

void Location::setAltitude ( qint32  altitude)

Sets altitude of this location.

Definition at line 117 of file location.cpp.

void Location::setAltitudeAccuracy ( qint32  altitudeAccuracy)

Sets altitude accuracy of this location.

Definition at line 122 of file location.cpp.

void Location::setHeading ( qint32  heading)

Sets heading of this location.

Definition at line 112 of file location.cpp.

void Location::setSpeed ( qint32  speed)

Sets speed of this location.

Definition at line 107 of file location.cpp.

void Location::setTimestamp ( qulonglong  timestamp)

Sets timestamp of this location.

Definition at line 97 of file location.cpp.

qint32 Location::speed ( ) const

Returns ground speed of the user at the time this location was recorded.

Returns -1 when speed is not defined.

Definition at line 77 of file location.cpp.

qulonglong Location::timestamp ( ) const

Timestamp of when this location has been recorded.

Also serves as location unique ID

Definition at line 67 of file location.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:14:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.