25 #ifndef DIGIKAM_GEO_COORDINATES_H
26 #define DIGIKAM_GEO_COORDINATES_H
33 #include <QStringList>
42 class GeoDataCoordinates;
61 Q_DECLARE_FLAGS(HasFlags, HasFlag)
71 GeoCoordinates(const
double inLat, const
double inLon, const
double inAlt);
80 bool hasCoordinates() const;
81 bool hasLatitude() const;
82 bool hasLongitude() const;
84 void setLatLon(const
double inLat, const
double inLon);
86 bool hasAltitude() const;
87 HasFlags hasFlags() const;
89 void setAlt(const
double inAlt);
94 QString altString() const;
95 QString latString() const;
96 QString lonString() const;
97 QString geoUrl() const;
100 Marble::GeoDataCoordinates toMarbleCoordinates() const;
102 static
GeoCoordinates fromGeoUrl(const QString& url,
bool* const parsedOkay =
nullptr);
103 static
GeoCoordinates fromMarbleCoordinates(const Marble::GeoDataCoordinates& marbleCoordinates);
104 static
Pair makePair(const qreal lat1, const qreal lon1, const qreal lat2, const qreal lon2);
120 Q_DECLARE_METATYPE(
Digikam::GeoCoordinates)
121 Q_DECLARE_METATYPE(
Digikam::GeoCoordinates::Pair)
122 Q_DECLARE_METATYPE(
Digikam::GeoCoordinates::PairList)
124 DIGIKAM_EXPORT QDebug operator<<(QDebug debug, const
Digikam::GeoCoordinates& coordinate);
Definition: geocoordinates.h:49
QPair< GeoCoordinates, GeoCoordinates > Pair
Definition: geocoordinates.h:64
HasFlag
Definition: geocoordinates.h:53
Definition: piwigotalker.h:48
Q_DECLARE_TYPEINFO(Digikam::GeoCoordinates, Q_MOVABLE_TYPE)
Definition: datefolderview.cpp:43