mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop-widgets: divelogsDE: integrate shared backend
Use doUpload() from uploadDiveLogsDE Connect signals from uploadDiveLogsDE to do UI part. Clean slots to only contain UI. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
5a4128a8f2
commit
6ccea3c39d
2 changed files with 24 additions and 110 deletions
|
|
@ -59,19 +59,18 @@ slots:
|
|||
void saveToZipFile();
|
||||
void listDownloadFinished();
|
||||
void downloadFinished();
|
||||
void uploadFinished();
|
||||
void uploadFinished(bool success, const QString &text);
|
||||
void downloadError(QNetworkReply::NetworkError error);
|
||||
void uploadError(QNetworkReply::NetworkError error);
|
||||
void startUpload();
|
||||
void updateProgress(qreal current, qreal total);
|
||||
void uploadStatus(const QString &text);
|
||||
|
||||
private:
|
||||
bool uploadDives(bool selected);
|
||||
explicit DivelogsDeWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
void setStatusText(int status);
|
||||
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
|
||||
unsigned int download_dialog_parse_response(const QByteArray &length);
|
||||
|
||||
QHttpMultiPart *multipart;
|
||||
QTemporaryFile zipFile;
|
||||
bool uploadMode;
|
||||
bool useSelectedDives;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue