KContacts::Geo
KContacts::Geo Class Reference
#include <geo.h>
Inheritance diagram for KContacts::Geo:

Properties | |
bool | isValid |
float | latitude |
float | longitude |
Public Member Functions | |
Geo () | |
Geo (float latitude, float longitude) | |
Geo (const Geo &other) | |
~Geo () | |
void | clear () |
bool | isValid () const |
float | latitude () const |
float | longitude () const |
bool | operator!= (const Geo &other) const |
Geo & | operator= (const Geo &other) |
bool | operator== (const Geo &other) const |
void | setLatitude (float latitude) |
void | setLongitude (float longitude) |
QString | toString () const |
Friends | |
KCONTACTS_EXPORT QDataStream & | operator<< (QDataStream &, const Geo &) |
KCONTACTS_EXPORT QDataStream & | operator>> (QDataStream &, Geo &) |
Detailed Description
Geographic position.
This class represents a geographic position.
Constructor & Destructor Documentation
Geo::Geo | ( | float | latitude, |
float | longitude | ||
) |
Member Function Documentation
void Geo::clear | ( | ) |
bool KContacts::Geo::isValid | ( | ) | const |
Returns, whether this object contains a valid geographical position.
float KContacts::Geo::latitude | ( | ) | const |
Returns the latitude.
float KContacts::Geo::longitude | ( | ) | const |
Returns the longitude.
bool Geo::operator!= | ( | const Geo & | other | ) | const |
bool Geo::operator== | ( | const Geo & | other | ) | const |
void Geo::setLatitude | ( | float | latitude | ) |
void Geo::setLongitude | ( | float | longitude | ) |
QString Geo::toString | ( | ) | const |
Friends And Related Function Documentation
|
friend |
Serializes the geographical position object
into the stream
.
|
friend |
Initializes the geographical position object
from the stream
.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:56:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:56:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.