• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::Geo

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 ()
bool isValid () const
float latitude () const
float longitude () const
bool operator!= (const Geo &) const
Geo & operator= (const Geo &other)
bool operator== (const Geo &) const
void setLatitude (float latitude)
void setLongitude (float longitude)
QString toString () const
 ~Geo ()

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.


Friends And Related Function Documentation

QDataStream& operator<< ( QDataStream &  ,
const Geo &   
) [friend]

Serializes the geographical position object into the stream.

QDataStream& operator>> ( QDataStream &  ,
Geo &   
) [friend]

Initializes the geographical position object from the stream.


The documentation for this class was generated from the following files:
  • geo.h
  • geo.cpp

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal