diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-09 14:02:05 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-11 12:36:43 -0500 |
commit | 6ccea3c39d97de09bf94fe964eff4a04e530f3e9 (patch) | |
tree | 77eaa4f6c94917a0d3bbec5400890b85049b3bdb /desktop-widgets/subsurfacewebservices.h | |
parent | 5a4128a8f2878a5e3b0906c8d0e58ba3fe3d4666 (diff) | |
download | subsurface-6ccea3c39d97de09bf94fe964eff4a04e530f3e9.tar.gz |
desktop-widgets: divelogsDE: integrate shared backend
Use doUpload() from uploadDiveLogsDE
Connect signals from uploadDiveLogsDE to do UI part.
Clean slots to only contain UI.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.h')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop-widgets/subsurfacewebservices.h b/desktop-widgets/subsurfacewebservices.h index 86454fd6c..8f515e27c 100644 --- a/desktop-widgets/subsurfacewebservices.h +++ b/desktop-widgets/subsurfacewebservices.h @@ -59,19 +59,18 @@ slots: void saveToZipFile(); void listDownloadFinished(); void downloadFinished(); - void uploadFinished(); + void uploadFinished(bool success, const QString &text); void downloadError(QNetworkReply::NetworkError error); - void uploadError(QNetworkReply::NetworkError error); void startUpload(); + void updateProgress(qreal current, qreal total); + void uploadStatus(const QString &text); private: - bool uploadDives(bool selected); explicit DivelogsDeWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0); void setStatusText(int status); void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status); unsigned int download_dialog_parse_response(const QByteArray &length); - QHttpMultiPart *multipart; QTemporaryFile zipFile; bool uploadMode; bool useSelectedDives; |