desktop-widgets: split UI and network in DivelogsDeWebServices (prepare)

Clean prepareDivesForUpload() and uploadDives() so that
uploadDives() only contain network handling no UI.

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-12-09 12:51:16 +01:00 committed by Dirk Hohndel
parent 10ab833d7d
commit 8becc29ca8
2 changed files with 40 additions and 33 deletions

View file

@ -65,7 +65,7 @@ slots:
void startUpload();
private:
void uploadDives(QIODevice *dldContent);
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);