subsurface/backend-shared
Berthold Stoeger 5b302235f4 Cleanup: Remove global QFuture from exportFuncs
When exporting dives we show a message. The message is closed when
the export is finished. This is coordinated by a QFuture. Instead
of keeping a global QFuture in the export-code, pass it around
as a local variable.

This is supported according to Qt's documentation:
"QFuture is a lightweight reference counted class that can be
passed by value." and the source code indicates the same.

Not only does this remove a global, it also makes the code
more flexible: Now we could show one notification per export,
for example.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-02-09 12:13:18 -08:00
..
CMakeLists.txt mobile/summary: remove backend-share/divesummary.[h|cpp] 2020-02-08 10:29:36 -08:00
exportfuncs.cpp Cleanup: Remove global QFuture from exportFuncs 2020-02-09 12:13:18 -08:00
exportfuncs.h Cleanup: Remove global QFuture from exportFuncs 2020-02-09 12:13:18 -08:00
plannershared.cpp Cleanup: rename plannerShared to PlannerShared 2020-02-04 02:17:52 +01:00
plannershared.h Cleanup: rename plannerShared to PlannerShared 2020-02-04 02:17:52 +01:00
README build-system: add new root dir backend-shared 2019-12-24 08:44:23 +09:00

This directory contains shared UI backend code shared between
the desktop version and the mobile version.

The backend code sits between the actual functionality, which
are implemented in core and qt-models, and the UI/QML which
are implemented in desktop-widgets and mobile-widgets.

The idea of backend is not to duplicate code, and at the same time
limit the UI and QML to only deal with real GUI.

The first implementations for backend are "export" and "diveplanner".