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

kabc

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

#include <geo.h>

Public Member Functions

 Geo ()
 
 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
 

Detailed Description

Geographic position.

This class represents a geographic position.

Definition at line 35 of file geo.h.

Constructor & Destructor Documentation

◆ Geo() [1/3]

Geo::Geo ( )

Creates an invalid geographics position object.

Definition at line 53 of file geo.cpp.

◆ Geo() [2/3]

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() [3/3]

Geo::Geo ( const Geo &  other)

Copy constructor.

Definition at line 65 of file geo.cpp.

◆ ~Geo()

Geo::~Geo ( )

Destroys the geographics position object.

Definition at line 70 of file geo.cpp.

Member Function Documentation

◆ isValid()

bool Geo::isValid ( ) const

Returns, whether this object contains a valid geographical position.

Definition at line 106 of file geo.cpp.

◆ latitude()

float Geo::latitude ( ) const

Returns the latitude.

Definition at line 85 of file geo.cpp.

◆ longitude()

float Geo::longitude ( ) const

Returns the longitude.

Definition at line 101 of file geo.cpp.

◆ operator!=()

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

Not-Equal operator.

Definition at line 128 of file geo.cpp.

◆ operator=()

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

Assignment operator.

Parameters
otherThe Geo instance to assign to this

Definition at line 133 of file geo.cpp.

◆ operator==()

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.

◆ setLatitude()

void Geo::setLatitude ( float  latitude)

Sets the latitude.

Parameters
latitudeThe location's latitude coordinate

Definition at line 74 of file geo.cpp.

◆ setLongitude()

void Geo::setLongitude ( float  longitude)

Sets the longitude.

Parameters
longitudeThe location's longitude coordinate

Definition at line 90 of file geo.cpp.

◆ toString()

QString Geo::toString ( ) const

Returns string representation of geographical position.

Definition at line 142 of file geo.cpp.


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-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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