From 9c52aaf043753dbb594c7420f776c836215dd6d2 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 14 Dec 2019 21:56:31 +0100 Subject: build-system: move exportfuncs to backend-shared WARNING: multi directory commit, needed to secure it builds. move the core/exportfuncs.* to backend-shared. update backend-shared/CMakeLists.txt to generate backend-shared lib update CMakeLists.txt to include backend-shared lib in link process. update ios project to reflect new directory Signed-off-by: Jan Iversen --- backend-shared/exportfuncs.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 backend-shared/exportfuncs.h (limited to 'backend-shared/exportfuncs.h') diff --git a/backend-shared/exportfuncs.h b/backend-shared/exportfuncs.h new file mode 100644 index 000000000..a378e152d --- /dev/null +++ b/backend-shared/exportfuncs.h @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef EXPORTFUNCS_H +#define EXPORTFUNCS_H + +#include +#include +#include "core/dive.h" + +class exportFuncs: public QObject { + Q_OBJECT + +public: + static exportFuncs *instance(); + + void exportProfile(QString filename, const bool selected_only); + void export_TeX(const char *filename, const bool selected_only, bool plain); + void export_depths(const char *filename, const bool selected_only); + std::vector getDiveSitesToExport(bool selectedOnly); + void exportUsingStyleSheet(QString filename, bool doExport, int units, + QString stylesheet, bool anonymize); + QFuture future; + + // prepareDivesForUploadDiveLog + // prepareDivesForUploadDiveShare + +private: + exportFuncs() {} + + // WARNING + // saveProfile uses the UI and are therefore different between + // Desktop (UI) and Mobile (QML) + // In order to solve this difference, the actual implementations + // are done in + // desktop-widgets/divelogexportdialog.cpp and + // mobile-widgets/qmlmanager.cpp + void saveProfile(const struct dive *dive, const QString filename); +}; + +#endif // EXPORT_FUNCS_H -- cgit v1.2.3-70-g09d2