mobile-widgets: activate uploadDiveLogsDE in qmlmanager

Remove "TO BE IMPLEMENTED" and add call doUpload

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-11-30 20:16:49 +01:00 committed by Dirk Hohndel
parent a637415de1
commit 03c9cdfbed

View file

@ -47,6 +47,8 @@
#include "core/trip.h" #include "core/trip.h"
#include "core/exportfuncs.h" #include "core/exportfuncs.h"
#include "core/worldmap-save.h" #include "core/worldmap-save.h"
#include "core/uploadDiveLogsDE.h"
QMLManager *QMLManager::m_instance = NULL; QMLManager *QMLManager::m_instance = NULL;
bool noCloudToCloud = false; bool noCloudToCloud = false;
@ -2190,10 +2192,7 @@ void QMLManager::exportToWEB(export_types type, QString userId, QString password
switch (type) switch (type)
{ {
case EX_DIVELOGS_DE: case EX_DIVELOGS_DE:
// TO BE IMPLEMENTED uploadDiveLogsDE::instance()->doUpload(false, userId, password);
// Current call in Desktop-widgets
// DivelogsDeWebServices::instance()->
// prepareDivesForUpload(ui->exportSelected->isChecked());
break; break;
case EX_DIVESHARE: case EX_DIVESHARE:
// TO BE IMPLEMENTED // TO BE IMPLEMENTED
@ -2205,5 +2204,4 @@ void QMLManager::exportToWEB(export_types type, QString userId, QString password
qDebug() << "upload to unknown type " << type << " using " << userId << "/" << password << " remove names " << anonymize; qDebug() << "upload to unknown type " << type << " using " << userId << "/" << password << " remove names " << anonymize;
break; break;
} }
qDebug() << "upload NOT implemented type " << type << " using " << userId << "/" << password << " remove names " << anonymize;
} }