From 3889c8f853aa2d128f54389b17f08fc7b9150788 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 03 Jan 2004 18:27:07 +0000 Subject: show GPS coordinates in the more common DMS format --- (limited to 'noncore/net/wellenreiter/gui/gps.h') diff --git a/noncore/net/wellenreiter/gui/gps.h b/noncore/net/wellenreiter/gui/gps.h index 8143fe4..cfe1cdb 100644 --- a/noncore/net/wellenreiter/gui/gps.h +++ b/noncore/net/wellenreiter/gui/gps.h @@ -19,12 +19,17 @@ #include #include -struct GpsLocation +class GpsLocation { - GpsLocation( const float& lat, const float& lon ) : latitude(lat), longitude(lon) {}; + public: + GpsLocation( const float& lat, const float& lon ) : _latitude(lat), _longitude(lon) {}; ~GpsLocation() {}; - float latitude; - float longitude; + float latitude() const { return _latitude; }; + float longitude() const { return _longitude; }; + QString dmsPosition() const; + private: + float _latitude; + float _longitude; }; -- cgit v0.9.0.2