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>
This commit is contained in:
Dirk Hohndel 2015-06-16 06:34:40 -07:00
parent a2c546152e
commit 6a0e1cd9f6
5 changed files with 194 additions and 141 deletions

20
divelogexportlogic.h Normal file
View file

@ -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