aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-11-19 19:27:20 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-03 21:30:39 -0800
commit27ce89a6e505f663af8664c011e74521099a9530 (patch)
treed22311ecd4b193d976e4116574b2f4fe62cce4fb /mobile-widgets/qmlmanager.h
parent06973d7ea09ede299b07831cc5cc1f33a882456e (diff)
downloadsubsurface-27ce89a6e505f663af8664c011e74521099a9530.tar.gz
mobile-widgets: add export functionality to qmlmanager
Add enum with different export types (used to signal which type of export QML desires). Add QML export functions (one for file and one for upload to web) Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 4faf823b8..4653c47a5 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -53,6 +53,26 @@ public:
QMLManager();
~QMLManager();
+ enum export_types {
+ EX_DIVES_XML,
+ EX_DIVE_SITES_XML,
+ EX_UDDF,
+ EX_DIVELOGS_DE,
+ EX_DIVESHARE,
+ EX_CSV_DIVE_PROFILE,
+ EX_CSV_DETAILS,
+ EX_CSV_PROFILE,
+ EX_PROFILE_PNG,
+ EX_WORLD_MAP,
+ EX_TEX,
+ EX_LATEX,
+ EX_IMAGE_DEPTHS
+ };
+ Q_ENUM(export_types)
+ Q_INVOKABLE void exportToFile(export_types type, QString directory, bool anonymize);
+ Q_INVOKABLE void exportToWEB(export_types type, QString userId, QString password, bool anonymize);
+
+
QString DC_vendor() const;
void DC_setVendor(const QString& vendor);