25 #ifndef DIGIKAM_GPS_DATA_CONTAINER_H
26 #define DIGIKAM_GPS_DATA_CONTAINER_H
54 : m_hasFlags (HasFlags()),
78 if (m_hasFlags != b.m_hasFlags)
85 if (!(m_coordinates == b.m_coordinates))
93 if (m_nSatellites != b.m_nSatellites)
101 if (m_dop != b.m_dop)
109 if (m_fixType != b.m_fixType)
117 if (m_speed != b.m_speed)
133 m_hasFlags = HasFlags();
134 m_coordinates.
clear();
146 return m_coordinates;
151 m_coordinates = coordinates;
176 m_coordinates.
setAlt(alt);
208 return m_nSatellites;
223 m_nSatellites = nSatellites;
231 return m_hasFlags.testFlag(
HasDop);
285 return m_hasFlags.testFlag(
HasSpeed);
305 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::GPSDataContainer::HasFlags)
Definition: gpsdatacontainer.h:36
void setLatLon(const qreal lat, const qreal lon)
Definition: gpsdatacontainer.h:185
bool hasCoordinates() const
Definition: gpsdatacontainer.h:199
qreal getDop() const
Definition: gpsdatacontainer.h:245
void clearDop()
Definition: gpsdatacontainer.h:234
void clearSpeed()
Definition: gpsdatacontainer.h:297
void clearFixType()
Definition: gpsdatacontainer.h:268
bool hasNSatellites() const
Definition: gpsdatacontainer.h:211
bool hasDop() const
Definition: gpsdatacontainer.h:229
bool operator==(const GPSDataContainer &b) const
Definition: gpsdatacontainer.h:76
HasFlags flags() const
Definition: gpsdatacontainer.h:126
GeoCoordinates getCoordinates() const
Definition: gpsdatacontainer.h:144
qreal getSpeed() const
Return the speed in m/s.
Definition: gpsdatacontainer.h:278
bool hasSpeed() const
Definition: gpsdatacontainer.h:283
void clear()
Definition: gpsdatacontainer.h:131
bool hasFixType() const
Definition: gpsdatacontainer.h:252
void setFixType(const int fixType)
Definition: gpsdatacontainer.h:257
void setNSatellites(const int nSatellites)
Definition: gpsdatacontainer.h:221
HasFlagsEnum
Definition: gpsdatacontainer.h:40
@ HasSpeed
Definition: gpsdatacontainer.h:47
@ HasFixType
Definition: gpsdatacontainer.h:46
@ HasDop
Definition: gpsdatacontainer.h:45
@ HasAltitude
Definition: gpsdatacontainer.h:42
@ HasNSatellites
Definition: gpsdatacontainer.h:44
@ HasCoordinates
Definition: gpsdatacontainer.h:41
@ HasIsInterpolated
Definition: gpsdatacontainer.h:43
void setAltitude(const qreal alt)
Definition: gpsdatacontainer.h:174
void clearNSatellites()
Definition: gpsdatacontainer.h:216
bool hasAltitude() const
Definition: gpsdatacontainer.h:180
void clearAltitude()
Definition: gpsdatacontainer.h:193
void setDop(const qreal dop)
Definition: gpsdatacontainer.h:239
void setCoordinates(const GeoCoordinates &coordinates)
Definition: gpsdatacontainer.h:149
void clearNonCoordinates()
Definition: gpsdatacontainer.h:137
GPSDataContainer()
Definition: gpsdatacontainer.h:53
void setSpeed(const qreal speed)
Set the speed in m/s.
Definition: gpsdatacontainer.h:291
int getNSatellites() const
Definition: gpsdatacontainer.h:206
qreal getFixType() const
Definition: gpsdatacontainer.h:263
Definition: geocoordinates.h:49
void clear()
Definition: geocoordinates.cpp:137
bool hasAltitude() const
Definition: geocoordinates.cpp:116
void setAlt(const double inAlt)
Definition: geocoordinates.cpp:126
void setLatLon(const double inLat, const double inLon)
Definition: geocoordinates.cpp:107
void clearAlt()
Definition: geocoordinates.cpp:132
bool hasCoordinates() const
Definition: geocoordinates.cpp:92
Definition: datefolderview.cpp:43