author | mickeyl <mickeyl> | 2004-01-03 18:27:07 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-03 18:27:07 (UTC) |
commit | 3889c8f853aa2d128f54389b17f08fc7b9150788 (patch) (unidiff) | |
tree | 692bf0541e19d19f9ac93059463e4c4eb2e43e5f /noncore/net/wellenreiter/gui/gps.h | |
parent | c69a2abd7718d8acddb4ce96a1909b33056e2dcd (diff) | |
download | opie-3889c8f853aa2d128f54389b17f08fc7b9150788.zip opie-3889c8f853aa2d128f54389b17f08fc7b9150788.tar.gz opie-3889c8f853aa2d128f54389b17f08fc7b9150788.tar.bz2 |
show GPS coordinates in the more common DMS format
Diffstat (limited to 'noncore/net/wellenreiter/gui/gps.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/gps.h | 13 |
1 files changed, 9 insertions, 4 deletions
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 @@ | |||
19 | #include <qobject.h> | 19 | #include <qobject.h> |
20 | #include <qsocket.h> | 20 | #include <qsocket.h> |
21 | 21 | ||
22 | struct GpsLocation | 22 | class GpsLocation |
23 | { | 23 | { |
24 | GpsLocation( const float& lat, const float& lon ) : latitude(lat), longitude(lon) {}; | 24 | public: |
25 | GpsLocation( const float& lat, const float& lon ) : _latitude(lat), _longitude(lon) {}; | ||
25 | ~GpsLocation() {}; | 26 | ~GpsLocation() {}; |
26 | float latitude; | 27 | float latitude() const { return _latitude; }; |
27 | float longitude; | 28 | float longitude() const { return _longitude; }; |
29 | QString dmsPosition() const; | ||
30 | private: | ||
31 | float _latitude; | ||
32 | float _longitude; | ||
28 | }; | 33 | }; |
29 | 34 | ||
30 | 35 | ||