core: add shared export functions (copy from desktop-widgets)

desktop-widgets/divelogexportdialog.* contains both the desktop
dialog as well as the "real" export functions.

Create a class to be shared between desktop and mobile

Copy the export functions 1-1 from divelogexportdialog.* of course
changing class names.

saveProfile is highly dependent on the UI, so the implementaion will
be done in each UI directory (desktop-widgets, mobile-widgets).

Remark this commit just add the copied functions, in order to secure
nothing is broken.

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-11-20 18:09:44 +01:00 committed by Dirk Hohndel
parent f597998038
commit 4e690119ef
3 changed files with 352 additions and 0 deletions

View file

@ -84,6 +84,8 @@ set(SUBSURFACE_CORE_LIB_SRCS
errorhelper.c
exif.cpp
exif.h
exportfuncs.cpp
exportfuncs.h
file.c
file.h
format.cpp