diff options
author | Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> | 2014-09-21 16:11:58 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-14 20:33:46 +0200 |
commit | 4cdb80c4cd3836fdbacf50f62e9c76f0efca244b (patch) | |
tree | 13b0dfba240d6ce58b7dc68d64f29153e5116dac /qt-ui/diveshareexportdialog.h | |
parent | 64d1ccc5502e79917bc17ed55ef1a783b4163139 (diff) | |
download | subsurface-4cdb80c4cd3836fdbacf50f62e9c76f0efca244b.tar.gz |
Export to DiveShare
Adds the possibility of exporting dives to DiveShare.
Signed-off-by: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveshareexportdialog.h')
-rw-r--r-- | qt-ui/diveshareexportdialog.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qt-ui/diveshareexportdialog.h b/qt-ui/diveshareexportdialog.h new file mode 100644 index 000000000..85dadf5f1 --- /dev/null +++ b/qt-ui/diveshareexportdialog.h @@ -0,0 +1,34 @@ +#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 +{ + Q_OBJECT +public: + explicit DiveShareExportDialog(QWidget *parent = 0); + ~DiveShareExportDialog(); + static DiveShareExportDialog *instance(); + void prepareDivesForUpload(bool); +private: + Ui::DiveShareExportDialog *ui; + bool exportSelected; + QNetworkReply *reply; +private +slots: + void UIDFromBrowser(); + void doUpload(); + void finishedSlot(); +}; + +#endif // DIVESHAREEXPORTDIALOG_H |