• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • Geo
Public Member Functions | Friends | List of all members
KABC::Geo Class Reference

#include <geo.h>

Public Member Functions

 Geo ()
 
 Geo (float latitude, float longitude)
 
 Geo (const Geo &other)
 
 ~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
 

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 53 of file geo.cpp.

Geo::Geo ( float  latitude,
float  longitude 
)

Creates a geographics position object.

Parameters
latitudeGeographical latitude
longitudeGeographical longitude

Definition at line 58 of file geo.cpp.

Geo::Geo ( const Geo &  other)

Copy constructor.

Definition at line 65 of file geo.cpp.

Geo::~Geo ( )

Destroys the geographics position object.

Definition at line 70 of file geo.cpp.

Member Function Documentation

bool Geo::isValid ( ) const

Returns, whether this object contains a valid geographical position.

Definition at line 106 of file geo.cpp.

float Geo::latitude ( ) const

Returns the latitude.

Definition at line 85 of file geo.cpp.

float Geo::longitude ( ) const

Returns the longitude.

Definition at line 101 of file geo.cpp.

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

Not-Equal operator.

Definition at line 128 of file geo.cpp.

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

Assignment operator.

Parameters
otherThe Geo instance to assign to this

Definition at line 133 of file geo.cpp.

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

Equality operator.

Note
Two invalid Geo instance will return true

Definition at line 111 of file geo.cpp.

void Geo::setLatitude ( float  latitude)

Sets the latitude.

Parameters
latitudeThe location's latitude coordinate

Definition at line 74 of file geo.cpp.

void Geo::setLongitude ( float  longitude)

Sets the longitude.

Parameters
longitudeThe location's longitude coordinate

Definition at line 90 of file geo.cpp.

QString Geo::toString ( ) const

Returns string representation of geographical position.

Definition at line 142 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal