From d9f637a815611f5e8d7513962cc5650e4c0b6d43 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 9 Dec 2019 09:50:26 +0100 Subject: [PATCH] core: make prepareDives public in uploadDiveLogsDE prepareDives needs to be public, in order to be used in subsurfacewebservices. "friend" is another option, but that gives subsurfacewebservices too much freedom. Signed-off-by: Jan Iversen --- core/uploadDiveLogsDE.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/uploadDiveLogsDE.h b/core/uploadDiveLogsDE.h index a094271b9..0375c95a4 100644 --- a/core/uploadDiveLogsDE.h +++ b/core/uploadDiveLogsDE.h @@ -13,6 +13,9 @@ public: static uploadDiveLogsDE *instance(); void doUpload(bool selected, const QString &userid, const QString &password); + // only to be used in desktop-widgets::subsurfacewebservices + bool prepareDives(const QString &tempfile, const bool selected); + private slots: void updateProgress(qint64 current, qint64 total); void uploadFinished(); @@ -26,7 +29,6 @@ signals: private: uploadDiveLogsDE(); - bool prepareDives(const QString &tempfile, const bool selected); void uploadDives(const QString &filename, const QString &userid, const QString &password); QNetworkReply *reply;