diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-26 13:19:43 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-26 13:33:10 -0800 |
commit | 7ffe7a8c8a389fd56cba3c18d142bf1ad59d872c (patch) | |
tree | feaf6857c2c633ea7c733306a4cc8cc8265173cf /subsurface-core/qthelper.h | |
parent | 07a0ef213993b1dd04ace8ff3d8720a499570764 (diff) | |
download | subsurface-7ffe7a8c8a389fd56cba3c18d142bf1ad59d872c.tar.gz |
Dive list model: add GPS string access
If the QML UI needs the GPS information, we need a way to get to it.
I'm not convinced that having it as comma separated string is the best way to
go, but that's what I need for the Google API so that's what I picked for now.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/qthelper.h')
-rw-r--r-- | subsurface-core/qthelper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/qthelper.h b/subsurface-core/qthelper.h index 5b3e5bdee..0049e9bbd 100644 --- a/subsurface-core/qthelper.h +++ b/subsurface-core/qthelper.h @@ -18,6 +18,7 @@ private: timestamp_t m_timestamp; QString m_time; QString m_location; + QString m_gps; QString m_duration; QString m_depth; QString m_divemaster; @@ -38,6 +39,7 @@ private: void put_date_time(); void put_timestamp(); void put_location(); + void put_gps(); void put_duration(); void put_depth(); void put_divemaster(); @@ -63,6 +65,7 @@ public: m_rating = dive->rating; put_date_time(); put_location(); + put_gps(); put_duration(); put_depth(); put_divemaster(); @@ -89,6 +92,7 @@ public: timestamp_t timestamp() const; QString time() const; QString location() const; + QString gps() const; QString duration() const; QString depth() const; QString divemaster() const; |