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>
This commit is contained in:
jan Iversen 2019-12-09 09:50:26 +01:00 committed by Dirk Hohndel
parent 49e6330399
commit d9f637a815

View file

@ -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;