/*! * * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \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 VPreTreatmentAdjustmentWaterSample.cpp * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #include "VPreTreatmentAdjustmentWaterSample.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VPreTreatmentAdjustmentWaterSample) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VPreTreatmentAdjustmentWaterSample::initConnections() { // ADJUST_VIEW_CONNECTION(AdjustWaterSampleRequestData ); ADJUST_VIEW_CONNECTION(AdjustWaterSampleResultRequestData ); // ACTION_VIEW_CONNECTION(AdjustWaterSampleResponseData ); } ///*! // * \brief VPreTreatmentAdjustmentWaterSample::onActionReceive // * \details received response model data handler // * \param vData - model data // */ //void View::VPreTreatmentAdjustmentWaterSample::onActionReceive(const AdjustWaterSampleResponseData &vData) //{ // adjustment_Accepted ( vData.mAccepted ); // adjustment_Reason ( vData.mReason ); // // *** 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. *** // adjustment ( true ); //} ///*! // * \brief View::VPreTreatmentAdjustmentWaterSample::doSample // * \details requests to start or stop the water sample // * \param vStart - the boolean value to indicate the request. // */ //void View::VPreTreatmentAdjustmentWaterSample::doSample(bool vStart) { // AdjustWaterSampleRequestData data; // data.requestedState = vStart ? // AdjustWaterSampleRequestData::eStart: // AdjustWaterSampleRequestData::eStop ; // emit didAdjustment(data); //} /*! * \brief View::VPreTreatmentAdjustmentWaterSample::doResult * \details requests to send the user result of the water sample. * \param vPassed - the boolean value to indicate the result if passed is true, false otherwise. */ void View::VPreTreatmentAdjustmentWaterSample::doResult(float vResult) { AdjustWaterSampleResultRequestData data; data.result = vResult; emit didAdjustment(data); }