summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-29 11:14:34 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-29 11:14:34 -0800
commitcab320201bc76f8ab5ca4cea5a5876ac31e79ee2 (patch)
tree3633f4f919c70c9282e0660c0dc8c50252c39161 /helpers.h
parentadb5cc5d306f11f8b3749259623ce6aae616f532 (diff)
downloadsubsurface-cab320201bc76f8ab5ca4cea5a5876ac31e79ee2.tar.gz
Facebook integration: improve the confirmation UI experience
Date and time needs to be a string, not a time_t. Duration should be called that (and not time) and wasn't hooked up. Also added a helper to get the duration string. Finally reordered the components of the text that is shown to make it more natural (or I should say, more in line with the order we use elsewhere). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index 56532d5c4..885b73e58 100644
--- a/helpers.h
+++ b/helpers.h
@@ -29,6 +29,7 @@ QString getSubsurfaceDataPath(QString folderToFind);
extern const QString get_dc_nickname(const char *model, uint32_t deviceid);
int gettimezoneoffset(timestamp_t when = 0);
int parseTemperatureToMkelvin(const QString &text);
+QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText);
QString get_dive_date_string(timestamp_t when);
QString get_short_dive_date_string(timestamp_t when);
QString get_trip_date_string(timestamp_t when, int nr);