diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-09 09:50:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-11 12:36:43 -0500 |
commit | d9f637a815611f5e8d7513962cc5650e4c0b6d43 (patch) | |
tree | a5b2e5b64619d84fc1393cf5cbcb1afcea18c4dc /core/uploadDiveLogsDE.h | |
parent | 49e633039911db835beb29a77bbc890117db9845 (diff) | |
download | subsurface-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.h | 4 |
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; |