mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
8f0e2245c2
The exportProfile function uses the UI and therefore was supposed to be declared in backend-shared/* but defined separately for desktop and mobile. Currently, only the desktop version exists. The goal however should be that there is no need of the UI for this function. In a first step, move the function to the common backend-shared/* code and conditionally compile for desktop. In upcoming commits, the function will be made independent of the UI. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
25 lines
841 B
C++
25 lines
841 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef EXPORTFUNCS_H
|
|
#define EXPORTFUNCS_H
|
|
|
|
#include <QString>
|
|
#include <QFuture>
|
|
|
|
struct dive_site;
|
|
|
|
// A synchrounous callback interface to signal progress / check for user abort
|
|
struct ExportCallback {
|
|
virtual void setProgress(int progress); // 0-1000
|
|
virtual bool canceled() const;
|
|
};
|
|
|
|
void exportProfile(QString filename, bool selected_only, ExportCallback &cb);
|
|
void export_TeX(const char *filename, bool selected_only, bool plain, ExportCallback &cb);
|
|
void export_depths(const char *filename, bool selected_only);
|
|
std::vector<const dive_site *> getDiveSitesToExport(bool selectedOnly);
|
|
QFuture<int> exportUsingStyleSheet(QString filename, bool doExport, int units, QString stylesheet, bool anonymize);
|
|
|
|
// prepareDivesForUploadDiveLog
|
|
// prepareDivesForUploadDiveShare
|
|
|
|
#endif // EXPORT_FUNCS_H
|