Index: sources/gui/guiview.cpp =================================================================== diff -u -reea63d68fc0fb269f8dec64d99f488bcad117220 -r56e378f7504701b9e9a9dccaf205aef2fd52c58e --- sources/gui/guiview.cpp (.../guiview.cpp) (revision eea63d68fc0fb269f8dec64d99f488bcad117220) +++ sources/gui/guiview.cpp (.../guiview.cpp) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) @@ -1,14 +1,15 @@ /*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file guiview.cpp - * \date 2019/09/30 - * \author Behrouz NematiPour + * \file guiview.cpp + * \author (last) Behrouz NematiPour + * \date (last) 25-Aug-2020 + * \author (original) Behrouz NematiPour + * \date (original) 24-Sep-2019 * */ #include "guiview.h" @@ -56,16 +57,16 @@ connect(&_GuiController, SIGNAL(didUSBDriveRemove()), this , SLOT( doUSBDriveRemove())); + // SD Card + connect(&_GuiController, SIGNAL(didSDCardStateChange(bool,bool)), + this , SLOT( doSDCardStateChange(bool,bool))); + connect(&_GuiController, SIGNAL(didExport()), this , SLOT( doExport())); // From UI : Export Log connect(this , SIGNAL(didExportLog()), &_GuiController, SLOT( doExportLog())); - - // ----- Adjust Blood/Dialysate Flows - connect(this , SIGNAL(didAdjustBloodDialysateFlows(quint32, quint32)), - &_GuiController, SLOT( doAdjustBloodDialysateFlows(quint32, quint32))); } /*! @@ -78,7 +79,6 @@ void GuiView::onActionReceive (GuiActionType vAction, const QVariantList &vData) { // process the evaluation and notify GUI - // process ... emit didActionReceive (vAction, vData); } @@ -91,8 +91,8 @@ */ void GuiView::doActionTransmit(GuiActionType vAction, const QVariantList &vData) { - // TODO : Remove this code later when Investigated throughly. - // coco begin validated: This code later needs to be removed when Investigated throughly. + // TODO : Remove this code later when Investigated thoroughly. + // coco begin validated: This code later needs to be removed when Investigated thoroughly. // has been tested manually emit didActionTransmit(vAction, vData); } @@ -109,8 +109,8 @@ void GuiView::doActionTransmit(GuiActionType vAction, const QVariant &vData) { - // TODO : Remove this code later when Investigated throughly. - // coco begin validated: This code later needs to be removed when Investigated throughly. + // TODO : Remove this code later when Investigated thoroughly. + // coco begin validated: This code later needs to be removed when Investigated thoroughly. // has been tested manually QVariantList mData; mData += vData; @@ -120,7 +120,7 @@ /*! * \brief GuiView::doUSBDriveMount - * \details emits didUSBDriveMount signal to notify other classes (GuiController) + * \details emits didUSBDriveMount signal to notify other classes (UI) * , the USB drive has been mounted. */ void GuiView::doUSBDriveMount () @@ -146,7 +146,7 @@ /*! * \brief GuiView::doUSBDriveRemove - * \details emits didUSBDriveRemove signal to notify other classes (GuiController) + * \details emits didUSBDriveRemove signal to notify other classes (UI) * , the USB drive has been removed. */ void GuiView::doUSBDriveRemove() @@ -158,6 +158,22 @@ // coco end /*! + * \brief GuiView::doSDCardStateChange + * \details emits didSDCardStateChange signal to notify other classes (UI) + * , the SD Card Stte has been changed. + * \param vIsReady - SdCard is Ready + * \param vIsReadOnly - SdCard is ReadOnly + */ +void GuiView::doSDCardStateChange(bool vIsReady, bool vIsReadOnly) +{ + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually + sdIsReady (vIsReady ); + sdIsReadOnly(vIsReadOnly); +} +// coco end + +/*! * \brief GuiView::onExport * \details The slot which will be called to notify the export is done * by emitting the didExport signal.