kabc Library API Documentation

KABC::Geo Class Reference

Geographic position. More...

#include <geo.h>

List of all members.

Public Methods

 Geo ()
 Construct invalid geographics position object.

 Geo (float latitude, float longitude)
 Construct geographics position object.

void setLatitude (float)
 Sets the latitude.

float latitude () const
 Returns the latitude.

void setLongitude (float)
 Sets the longitude.

float longitude () const
 Returns the longitude.

bool isValid () const
 Returns, if this object contains a valid geographical position.

QString asString () const
 Returns string representation of geographical position.


Detailed Description

Geographic position.

This class represents a geographic position.

Definition at line 33 of file geo.h.


Constructor & Destructor Documentation

Geo::Geo  
 

Construct invalid geographics position object.

Definition at line 27 of file geo.cpp.

Geo::Geo float    latitude,
float    longitude
 

Construct geographics position object.

Parameters:
latitude  Geographical latitude
longitude  Geographical longitude

Definition at line 32 of file geo.cpp.


Member Function Documentation

void Geo::setLatitude float   
 

Sets the latitude.

Definition at line 38 of file geo.cpp.

References latitude().

float Geo::latitude  
 

Returns the latitude.

Definition at line 44 of file geo.cpp.

Referenced by setLatitude().

void Geo::setLongitude float   
 

Sets the longitude.

Definition at line 49 of file geo.cpp.

References longitude().

float Geo::longitude  
 

Returns the longitude.

Definition at line 55 of file geo.cpp.

Referenced by setLongitude().

bool Geo::isValid  
 

Returns, if this object contains a valid geographical position.

Definition at line 60 of file geo.cpp.

QString Geo::asString  
 

Returns string representation of geographical position.

Definition at line 81 of file geo.cpp.

References QString::number().

Referenced by KABC::Addressee::dump().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:09 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001