6#include "GeoDataLocation.h"
7#include "GeoDataTypes.h"
12class GeoDataLocationPrivate
15 GeoDataCoordinates m_coordinates;
17 GeoDataLocationPrivate();
20GeoDataLocationPrivate::GeoDataLocationPrivate()
26GeoDataLocation::GeoDataLocation()
27 : d(new GeoDataLocationPrivate)
32GeoDataLocation::GeoDataLocation(
const Marble::GeoDataLocation &other)
33 : GeoDataObject(other)
34 , d(new GeoDataLocationPrivate(*other.d))
39GeoDataLocation &GeoDataLocation::operator=(
const GeoDataLocation &other)
41 GeoDataObject::operator=(other);
46bool GeoDataLocation::operator==(
const GeoDataLocation &other)
const
48 return equals(other) && d->m_coordinates == other.d->m_coordinates;
51bool GeoDataLocation::operator!=(
const GeoDataLocation &other)
const
56GeoDataLocation::~GeoDataLocation()
61const char *GeoDataLocation::nodeType()
const
63 return GeoDataTypes::GeoDataLocationType;
66qreal GeoDataLocation::altitude()
const
68 return d->m_coordinates.altitude();
71void GeoDataLocation::setAltitude(qreal altitude)
73 d->m_coordinates.setAltitude(altitude);
76qreal GeoDataLocation::latitude(GeoDataCoordinates::Unit unit)
const
78 return d->m_coordinates.latitude(unit);
81void GeoDataLocation::setLatitude(qreal latitude, GeoDataCoordinates::Unit unit)
83 d->m_coordinates.setLatitude(latitude, unit);
86qreal GeoDataLocation::longitude(GeoDataCoordinates::Unit unit)
const
88 return d->m_coordinates.longitude(unit);
91void GeoDataLocation::setLongitude(qreal longitude, GeoDataCoordinates::Unit unit)
93 d->m_coordinates.setLongitude(longitude, unit);
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.