Index: sources/view/vtreatmentadjustmentsresponse.cpp =================================================================== diff -u -rb798668f16ad0967ab97e96f5f9a2cdd821e899f -r016578b44e879b89bd42dda7763ed50e67d7e64c --- sources/view/vtreatmentadjustmentsresponse.cpp (.../vtreatmentadjustmentsresponse.cpp) (revision b798668f16ad0967ab97e96f5f9a2cdd821e899f) +++ sources/view/vtreatmentadjustmentsresponse.cpp (.../vtreatmentadjustmentsresponse.cpp) (revision 016578b44e879b89bd42dda7763ed50e67d7e64c) @@ -17,9 +17,7 @@ #include "guicontroller.h" VIEW_DEF_CLASS(VTreatmentAdjustmentsResponse) -void VTreatmentAdjustmentsResponse::initConnections() { - VIEW_DEF_CONNECTION_ADJUSTMENTS -} +void VTreatmentAdjustmentsResponse::initConnections() { } /*! @@ -40,34 +38,15 @@ return mo->enumerator(enumIdx).valueToKey(vEnum); } +/*! + * \brief View::VTreatmentAdjustmentsResponse::text + * \details The slot to ge the Reasin Description + * \return Reason description as string + */ QString View::VTreatmentAdjustmentsResponse::text() { QString text; if (_adjustment_Reason != GuiRequestReasons::REQUEST_REJECT_REASON_NONE) text = reasonText(static_cast(_adjustment_Reason)); return text; } - -void VTreatmentAdjustmentsResponse::onActionReceive(const AdjustBloodDialysateResponseData &vData) -{ - adjustment_Accepted ( vData.mAccepted ); - adjustment_Reason ( vData.mReason ); - bloodFlow_FlowSetPoint ( vData.mBloodRate ); - dialysateFlow_FlowSetPoint ( vData.mDialydateReate ); - - // *** has to be the last to let the information to be set and then emit the signal *** - // *** otherwise will use the previous values before being set. *** - adjustmentFlow ( true ); -} - -void VTreatmentAdjustmentsResponse::onActionReceive(const AdjustDurationResponseData &vData) -{ - adjustment_Accepted ( vData.mAccepted ); - adjustment_Reason ( vData.mReason ); - duration ( vData.mDuration ); - ultrafiltration ( vData.mUFVolume ); - - // *** has to be the last to let the information to be set and then emit the signal *** - // *** otherwise will use the previous values before being set. *** - adjustmentDuration ( true ); -}