summaryrefslogtreecommitdiffstats
path: root/core/uploadDiveLogsDE.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-09 09:50:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-11 12:36:43 -0500
commitd9f637a815611f5e8d7513962cc5650e4c0b6d43 (patch)
treea5b2e5b64619d84fc1393cf5cbcb1afcea18c4dc /core/uploadDiveLogsDE.h
parent49e633039911db835beb29a77bbc890117db9845 (diff)
downloadsubsurface-d9f637a815611f5e8d7513962cc5650e4c0b6d43.tar.gz
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 <jan@casacondor.com>
Diffstat (limited to 'core/uploadDiveLogsDE.h')
-rw-r--r--core/uploadDiveLogsDE.h4
1 files changed, 3 insertions, 1 deletions
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;