Index: sources/device/DeviceController.cpp =================================================================== diff -u -r52bd89b3860281744d9794f0f003c36c4d59a2dc -r2ff5c29049307261cbee39176631155e11722914 --- sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision 52bd89b3860281744d9794f0f003c36c4d59a2dc) +++ sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision 2ff5c29049307261cbee39176631155e11722914) @@ -122,8 +122,8 @@ connect(&_Logger , SIGNAL(didLogBackup (const QString &)), this , SLOT( onLogBackup (const QString &))); - connect(&_CloudSyncController , SIGNAL(didLogUpload (const QString &)), - this , SLOT( onLogUpload (const QString &))); + connect(&_CloudSyncController , SIGNAL(didLogUpload (const QString &, const quint32 &, const quint32 &)), + this , SLOT( onLogUpload (const QString &, const quint32 &, const quint32 &))); DEVICE_DEV_INIT_CONNECTIONS_LIST @@ -1055,12 +1055,20 @@ return ok; } -void DeviceController::onLogUpload(const QString &vFileName) +void DeviceController::onLogUpload(const QString &vFileName, const quint32 &vAccepted, const quint32 &vRejectReason) { if ( ! gLogUpload ) return; // no log uploaded rename ( slot ) bool ok = true; - ok = logUpload( vFileName); + if (vAccepted) ok = logUpload( vFileName); + else{ + switch (vRejectReason){ + case 1 : ok = false; break; //Connectivity Error + case 2 : ok = false; break; //Credential Error + case 3 : logUpload( vFileName);; break; //Duplicate Error + default : break; + } + } emit didLogUpload(ok, vFileName); }