Index: sources/gui/guiview.cpp =================================================================== diff -u -rb798668f16ad0967ab97e96f5f9a2cdd821e899f -r56e378f7504701b9e9a9dccaf205aef2fd52c58e --- sources/gui/guiview.cpp (.../guiview.cpp) (revision b798668f16ad0967ab97e96f5f9a2cdd821e899f) +++ 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,20 +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))); - // ----- Adjust Treatment Duration - connect(this , SIGNAL(didAdjustDuration(quint32)), - &_GuiController, SLOT( doAdjustDuration(quint32))); - } /*! @@ -94,7 +91,7 @@ */ void GuiView::doActionTransmit(GuiActionType vAction, const QVariantList &vData) { - // TODO : Remove this code later 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); @@ -112,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; @@ -123,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 () @@ -149,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() @@ -161,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.