mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
8391d926c7
These just make no sense. Since the value is copied, it has no meaning to the caller whether the function can change the value (and vice versa for return types). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
39 lines
1 KiB
C++
39 lines
1 KiB
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef UPLOADDIVELOGSDE_H
|
|
#define UPLOADDIVELOGSDE_H
|
|
#include <QNetworkReply>
|
|
#include <QHttpMultiPart>
|
|
#include <QTimer>
|
|
|
|
|
|
class uploadDiveLogsDE : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static uploadDiveLogsDE *instance();
|
|
void doUpload(bool selected, const QString &userid, const QString &password);
|
|
|
|
private slots:
|
|
void updateProgressSlot(qint64 current, qint64 total);
|
|
void uploadFinishedSlot();
|
|
void uploadTimeoutSlot();
|
|
void uploadErrorSlot(QNetworkReply::NetworkError error);
|
|
|
|
signals:
|
|
void uploadFinish(bool success, const QString &text);
|
|
void uploadProgress(qreal percentage, qreal total);
|
|
void uploadStatus(const QString &text);
|
|
|
|
private:
|
|
uploadDiveLogsDE();
|
|
|
|
void uploadDives(const QString &filename, const QString &userid, const QString &password);
|
|
|
|
// only to be used in desktop-widgets::subsurfacewebservices
|
|
bool prepareDives(const QString &tempfile, bool selected);
|
|
|
|
QNetworkReply *reply;
|
|
QHttpMultiPart *multipart;
|
|
QTimer timeout;
|
|
};
|
|
#endif // UPLOADDIVELOGSDE_H
|