summaryrefslogtreecommitdiffstats
path: root/divelogexportlogic.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 06:34:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 14:04:41 -0700
commit6a0e1cd9f6da893a7da4fa82de6ef47bb645f617 (patch)
treed38e7f4c7b4ff8c3758c9300e3bdfcaf55695a66 /divelogexportlogic.h
parenta2c546152ebfd0e01dd7021433aa04b94150bf4a (diff)
downloadsubsurface-6a0e1cd9f6da893a7da4fa82de6ef47bb645f617.tar.gz
HTML export: separate UI and logic code
In order to be able to initiate an HTML export from the core library we need to separate the actual logic from the UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelogexportlogic.h')
-rw-r--r--divelogexportlogic.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/divelogexportlogic.h b/divelogexportlogic.h
new file mode 100644
index 000000000..84f09c362
--- /dev/null
+++ b/divelogexportlogic.h
@@ -0,0 +1,20 @@
+#ifndef DIVELOGEXPORTLOGIC_H
+#define DIVELOGEXPORTLOGIC_H
+
+struct htmlExportSetting {
+ bool exportPhotos;
+ bool selectedOnly;
+ bool listOnly;
+ QString fontFamily;
+ QString fontSize;
+ int themeSelection;
+ bool subsurfaceNumbers;
+ bool yearlyStatistics;
+ QString themeFile;
+};
+
+void file_copy_and_overwrite(const QString &fileName, const QString &newName);
+void exportHtmlInitLogic(const QString &filename, struct htmlExportSetting &hes);
+
+#endif // DIVELOGEXPORTLOGIC_H
+