KABC::Geo Class Reference

Geographic position. More...

#include <geo.h>

List of all members.

Public Member Functions

 Geo (const Geo &other)
 Geo (float latitude, float longitude)
 Geo ()
 ~Geo ()
bool isValid () const
float latitude () const
float longitude () const
bool operator!= (const Geo &) const
Geooperator= (const Geo &other)
bool operator== (const Geo &) const
void setLatitude (float latitude)
void setLongitude (float longitude)
QString toString () const

Friends

QDataStream & operator<< (QDataStream &, const Geo &)
QDataStream & operator>> (QDataStream &, Geo &)

Detailed Description

Geographic position.

This class represents a geographic position.

Definition at line 35 of file geo.h.


Constructor & Destructor Documentation

Geo::Geo (  ) 

Creates an invalid geographics position object.

Definition at line 55 of file geo.cpp.

Geo::Geo ( float  latitude,
float  longitude 
)

Creates a geographics position object.

Parameters:
latitude Geographical latitude
longitude Geographical longitude

Definition at line 60 of file geo.cpp.

Geo::Geo ( const Geo other  ) 

Copy constructor.

Definition at line 67 of file geo.cpp.

Geo::~Geo (  ) 

Destroys the geographics position object.

Definition at line 72 of file geo.cpp.


Member Function Documentation

bool Geo::isValid (  )  const

Returns, whether this object contains a valid geographical position.

Definition at line 108 of file geo.cpp.

float Geo::latitude (  )  const

Returns the latitude.

Definition at line 87 of file geo.cpp.

float Geo::longitude (  )  const

Returns the longitude.

Definition at line 103 of file geo.cpp.

bool Geo::operator!= ( const Geo other  )  const

Not-Equal operator.

Definition at line 130 of file geo.cpp.

Geo & Geo::operator= ( const Geo other  ) 

Assignment operator.

Parameters:
other The Geo instance to assign to this

Definition at line 135 of file geo.cpp.

bool Geo::operator== ( const Geo other  )  const

Equality operator.

Note:
Two invalid Geo instance will return true

Definition at line 113 of file geo.cpp.

void Geo::setLatitude ( float  latitude  ) 

Sets the latitude.

Parameters:
latitude The location's latitude coordinate

Definition at line 76 of file geo.cpp.

void Geo::setLongitude ( float  longitude  ) 

Sets the longitude.

Parameters:
longitude The location's longitude coordinate

Definition at line 92 of file geo.cpp.

QString Geo::toString (  )  const

Returns string representation of geographical position.

Definition at line 144 of file geo.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys