summaryrefslogtreecommitdiffstats
path: root/core/helpers.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-25 20:23:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-04 12:16:49 -0800
commite9debdf281a1a9661fb261df73446a8898be1d77 (patch)
tree9959abd47e0294bac6bfa5f899cc462346392da3 /core/helpers.h
parent3afc4528b32f4b716fbda6394fc74d1e226c36df (diff)
downloadsubsurface-e9debdf281a1a9661fb261df73446a8898be1d77.tar.gz
Add helper to parse duration text
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/helpers.h')
-rw-r--r--core/helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/helpers.h b/core/helpers.h
index a4a903ea6..7acbeaff6 100644
--- a/core/helpers.h
+++ b/core/helpers.h
@@ -28,6 +28,7 @@ QString getPrintingTemplatePathBundle();
void copyPath(QString src, QString dst);
extern const QString get_dc_nickname(const char *model, uint32_t deviceid);
int gettimezoneoffset(timestamp_t when = 0);
+int parseDurationToSeconds(const QString &text);
int parseLengthToMm(const QString &text);
int parseTemperatureToMkelvin(const QString &text);
int parseWeightToGrams(const QString &text);