2019-11-20 17:09:44 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef EXPORTFUNCS_H
|
|
|
|
#define EXPORTFUNCS_H
|
|
|
|
|
2020-02-06 21:41:36 +00:00
|
|
|
#include <QString>
|
2019-11-20 17:09:44 +00:00
|
|
|
#include <QFuture>
|
2020-02-06 21:41:36 +00:00
|
|
|
|
|
|
|
struct dive_site;
|
2019-11-20 17:09:44 +00:00
|
|
|
|
2021-04-30 13:51:13 +00:00
|
|
|
// A synchrounous callback interface to signal progress / check for user abort
|
|
|
|
struct ExportCallback {
|
|
|
|
virtual void setProgress(int progress); // 0-1000
|
|
|
|
virtual bool canceled() const;
|
|
|
|
};
|
|
|
|
|
2021-05-01 19:21:50 +00:00
|
|
|
void exportProfile(QString filename, bool selected_only, ExportCallback &cb);
|
2021-04-30 13:51:13 +00:00
|
|
|
void export_TeX(const char *filename, bool selected_only, bool plain, ExportCallback &cb);
|
2020-02-06 21:56:10 +00:00
|
|
|
void export_depths(const char *filename, bool selected_only);
|
2020-02-06 21:38:29 +00:00
|
|
|
std::vector<const dive_site *> getDiveSitesToExport(bool selectedOnly);
|
2024-01-16 16:39:19 +00:00
|
|
|
QFuture<int> exportUsingStyleSheet(const QString &filename, bool doExport, int units, const QString &stylesheet, bool anonymize);
|
2020-02-06 21:38:29 +00:00
|
|
|
|
|
|
|
// prepareDivesForUploadDiveLog
|
|
|
|
// prepareDivesForUploadDiveShare
|
|
|
|
|
2019-11-20 17:09:44 +00:00
|
|
|
#endif // EXPORT_FUNCS_H
|