mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: add export functionality to qmlmanager
Add enum with different export types (used to signal which type of export QML desires). Add QML export functions (one for file and one for upload to web) Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
06973d7ea0
commit
27ce89a6e5
2 changed files with 101 additions and 0 deletions
|
@ -53,6 +53,26 @@ public:
|
|||
QMLManager();
|
||||
~QMLManager();
|
||||
|
||||
enum export_types {
|
||||
EX_DIVES_XML,
|
||||
EX_DIVE_SITES_XML,
|
||||
EX_UDDF,
|
||||
EX_DIVELOGS_DE,
|
||||
EX_DIVESHARE,
|
||||
EX_CSV_DIVE_PROFILE,
|
||||
EX_CSV_DETAILS,
|
||||
EX_CSV_PROFILE,
|
||||
EX_PROFILE_PNG,
|
||||
EX_WORLD_MAP,
|
||||
EX_TEX,
|
||||
EX_LATEX,
|
||||
EX_IMAGE_DEPTHS
|
||||
};
|
||||
Q_ENUM(export_types)
|
||||
Q_INVOKABLE void exportToFile(export_types type, QString directory, bool anonymize);
|
||||
Q_INVOKABLE void exportToWEB(export_types type, QString userId, QString password, bool anonymize);
|
||||
|
||||
|
||||
QString DC_vendor() const;
|
||||
void DC_setVendor(const QString& vendor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue