Index: sources/cloudsync/CloudSyncController.cpp =================================================================== diff -u -r928a1ed5d70358fc00c49df45725f989d16c370e -r5967e3c458599ea7af0f298e844eef89004acb03 --- sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 928a1ed5d70358fc00c49df45725f989d16c370e) +++ sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 5967e3c458599ea7af0f298e844eef89004acb03) @@ -95,8 +95,8 @@ this , SLOT( onWatchFileChange (const QString &))); connect(&_MessageDispatcher , SIGNAL(didActionReceive (GuiActionType , const QVariantList &)), this , SLOT( onActionReceive (GuiActionType , const QVariantList &))); - connect(&_TreatmentLog , SIGNAL(didTreatmentLogSave(const QString &, const QString &, const QString &)), - this , SLOT( onTreatmentLogSave(const QString &, const QString &, const QString &))); + connect(&_TreatmentLog , SIGNAL(didTxPending (const QString &)), + this , SLOT( onTxPending (const QString &))); connect(this , SIGNAL(didInitComplete ()), this , SLOT( onInitComplete ()),Qt::QueuedConnection); // it has to be queued connection, don't remove it. } @@ -148,7 +148,6 @@ // a simple touch or a check-in message? testWatchBuffDate(); testDeviceInfoWait(); - testPendingTxReports(); } /*! @@ -637,19 +636,12 @@ } } -/*! - * \brief CloudSyncController::onTreatmentLogSave - * \details The slot being called when the TreatmentLogController notifies the CloudSyncController, about the treatment log being successfully saved. - * \param vDeviceID - Device ID - * \param vPatientID - Patient ID - * \param vFileName - The complete Treatment log path and file name. - */ -void CloudSyncController::onTreatmentLogSave(const QString &/*vDeviceID*/, const QString &/*vPatientID*/, const QString &vFileName) +void CloudSyncController::onTxPending(const QString &vFileName) { - QVariantList data { /*vDeviceID, vPatientID,*/ vFileName }; + // if (! isRegistered() ) return; + qint32 messageID = UI2CS(static_cast( eMessageID_TxReport )); sendCredentialsSend(); // TODO: This has to be removed later, it is a workaround for Cloud issue, during our talk with KBM. - saveUIHistory(eMessageID_TxReport, data ); - sendUIHistory(eMessageID_TxReport ); + sendUIBuff(makeUIBuff( messageID , { vFileName } )); } /*! @@ -706,13 +698,6 @@ return ok; } -void CloudSyncController::testPendingTxReports() -{ - QFileInfoList fileInfos; - fileInfos = Storage::FileHandler::find(_TreatmentLog.logPathPending(), {"*.log"}); - qDebug() << fileInfos; -} - /*! * \brief CloudSyncController::doResetFactory * \details does the reset factory