From 27ce89a6e505f663af8664c011e74521099a9530 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 19 Nov 2019 19:27:20 +0100 Subject: 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 --- mobile-widgets/qmlmanager.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mobile-widgets/qmlmanager.h') 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); -- cgit v1.2.3-70-g09d2