2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-09-21 14:11:58 +00:00
|
|
|
#ifndef DIVESHAREEXPORTDIALOG_H
|
|
|
|
#define DIVESHAREEXPORTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QNetworkReply>
|
|
|
|
#include <QNetworkAccessManager>
|
|
|
|
|
|
|
|
#define DIVESHARE_WEBSITE "dive-share.appspot.com"
|
|
|
|
#define DIVESHARE_BASE_URI "http://" DIVESHARE_WEBSITE
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class DiveShareExportDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DiveShareExportDialog : public QDialog
|
|
|
|
{
|
2017-05-27 18:05:38 +00:00
|
|
|
Q_OBJECT
|
2014-09-21 14:11:58 +00:00
|
|
|
public:
|
2017-05-27 18:05:38 +00:00
|
|
|
explicit DiveShareExportDialog(QWidget *parent = 0);
|
|
|
|
~DiveShareExportDialog();
|
|
|
|
static DiveShareExportDialog *instance();
|
|
|
|
void prepareDivesForUpload(bool);
|
2014-09-21 14:11:58 +00:00
|
|
|
private:
|
2017-05-27 18:05:38 +00:00
|
|
|
Ui::DiveShareExportDialog *ui;
|
|
|
|
bool exportSelected;
|
2014-09-21 14:11:58 +00:00
|
|
|
private
|
|
|
|
slots:
|
2017-05-27 18:05:38 +00:00
|
|
|
void UIDFromBrowser();
|
|
|
|
void doUpload();
|
2019-12-10 14:36:31 +00:00
|
|
|
void finishedSlot(bool, const QString &, const QByteArray &);
|
2014-09-21 14:11:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIVESHAREEXPORTDIALOG_H
|