Index: leahi.pro =================================================================== diff -u -r32a7b4d52315019d125c6c7b728bf0d215919c0f -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- leahi.pro (.../leahi.pro) (revision 32a7b4d52315019d125c6c7b728bf0d215919c0f) +++ leahi.pro (.../leahi.pro) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -272,6 +272,7 @@ sources/model/dd/adjustment/settings/MAdjustDDDateTimeResponse.h \ \ # ---------- Models - TD - Adjustment - End-Treatment sources/model/td/adjustment/treatment/MTreatmentAdjustEndResponse.h \ + sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h \ \ # ---------- Models - confirm sources/model/confirm/MDuetConfirmHDi.h \ \ # ---------- Models - POST @@ -319,7 +320,6 @@ sources/model/hd/adjustment/treatment/MTreatmentAdjustBloodDialysateResponse.h \ sources/model/hd/adjustment/treatment/MTreatmentAdjustHeparinResponse.h \ \ # ---------- Models - HD - Adjustment - End-Treatment - sources/model/hd/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h \ sources/model/hd/adjustment/treatment/MTreatmentAdjustRecirculateResponse.h \ \ # ---------- Models - HD - Adjustment - Post-Treatment sources/model/hd/adjustment/posttreatment/MPostTreatmentAdjustRequests.h \ @@ -588,6 +588,7 @@ \ # ---------- Models - TD - Adjustment - End-Treatment sources/model/td/adjustment/treatment/MTreatmentAdjustEndResponse.cpp \ sources/model/td/adjustment/treatment/MTreatmentAdjustVitalsResponse.cpp \ + sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp \ \ # ---------- Models - CONFIRM sources/model/confirm/MDuetConfirmHDi.cpp \ \ # ---------- Models - POST @@ -636,7 +637,6 @@ sources/model/hd/adjustment/treatment/MTreatmentAdjustBloodDialysateResponse.cpp \ sources/model/hd/adjustment/treatment/MTreatmentAdjustHeparinResponse.cpp \ \ # ---------- Models - HD - Adjustment - End-Treatment - sources/model/hd/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp \ sources/model/hd/adjustment/treatment/MTreatmentAdjustRecirculateResponse.cpp \ \ # ---------- Models - HD - Adjustment - Post-Treatment sources/model/hd/adjustment/posttreatment/MPostTreatmentAdjustTreatmentLogResponse.cpp \ Index: sources/gui/qml/components/HeaderBar.qml =================================================================== diff -u -r0dfba44fb7172b9458d161b3ed5f54527f93b698 -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 0dfba44fb7172b9458d161b3ed5f54527f93b698) +++ sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -50,12 +50,16 @@ } Text { id: _title - color : Colors.textMain - anchors.centerIn : parent - horizontalAlignment : Text.AlignHCenter - verticalAlignment : Text.AlignVCenter - font.pixelSize : Fonts.fontHeaderbarTitle - font.weight : Font.DemiBold + color : Colors.textMain + anchors { + horizontalCenter : parent.horizontalCenter + bottom : _headerMenu.top + } + height : parent.height + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + font.pixelSize : Fonts.fontHeaderbarTitle + font.weight : Font.DemiBold } Item { id: _dateTimeItem Index: sources/gui/qml/pages/endtreatment/EndTreatmentBase.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- sources/gui/qml/pages/endtreatment/EndTreatmentBase.qml (.../EndTreatmentBase.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/pages/endtreatment/EndTreatmentBase.qml (.../EndTreatmentBase.qml) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -31,8 +31,8 @@ property bool hasTimeout : false property alias timeout : _timeoutLoader.item property int timeoutValue : 0 + property string headerTitle : "" - Loader { id: _timeoutLoader active : _root.hasTimeout anchors { Index: sources/gui/qml/pages/endtreatment/EndTreatmentRinsebackStack.qml =================================================================== diff -u -r43ae56f762e6f3e1416d39e3d16f9103fc597e41 -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- sources/gui/qml/pages/endtreatment/EndTreatmentRinsebackStack.qml (.../EndTreatmentRinsebackStack.qml) (revision 43ae56f762e6f3e1416d39e3d16f9103fc597e41) +++ sources/gui/qml/pages/endtreatment/EndTreatmentRinsebackStack.qml (.../EndTreatmentRinsebackStack.qml) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -15,6 +15,7 @@ // Qt import QtQuick 2.12 +import QtQuick.Controls 2.12 // StackView // Project // Qml imports @@ -32,13 +33,32 @@ property int stackStepIndex : 0 + onVisibleChanged: { + if (visible) { + _headerBar.titleText = stackView.currentItem.headerTitle ?? "" + } + else { + _headerBar.titleText = "" + } + } + // Rinseback EndTreatmentRinsebackInit { id: _endTreatmentRinsebackInit } - EndTreatmentRinseback { id: _endTreatmentRinseback } + EndTreatmentRinseback { id: _endTreatmentRinseback + StackView.onActivating : { + _headerBar.titleText = qsTr("Rinseback") + } + } EndTreatmentRinsebackComplete { id: _endTreatmentRinsebackComplete } EndTreatmentAdditional { id: _endTreatmentAdditional } EndTreatmentRinsebackReconnect { id: _endTreatmentRinsebackReconnect } + Connections { target: stackView + function onCurrentItemChanged() { + _headerBar.titleText = stackView.currentItem.headerTitle ?? "" + } + } + Connections { target: _endTreatmentRinsebackInit function onRinsebackClicked ( vValue ) { vTreatmentAdjustmentRinseback.doStart ()} //82.0 function onTreatmentEndClicked ( vValue ) { vTreatmentAdjustmentRinseback.doTreatmentEnd ()} //82.8 Index: sources/gui/qml/pages/endtreatment/rinseback/EndTreatmentRinseback.qml =================================================================== diff -u -ra1d19467c94f1912a44a070a2b8641d7cd03f5d0 -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- sources/gui/qml/pages/endtreatment/rinseback/EndTreatmentRinseback.qml (.../EndTreatmentRinseback.qml) (revision a1d19467c94f1912a44a070a2b8641d7cd03f5d0) +++ sources/gui/qml/pages/endtreatment/rinseback/EndTreatmentRinseback.qml (.../EndTreatmentRinseback.qml) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -29,228 +29,236 @@ */ EndTreatmentBase { id: _root objectName : "_EndTreatmentRinseback" - title.text : qsTr("Rinseback") + headerTitle : qsTr("Rinseback") + signal pauseClicked () signal resumeClicked () signal endClicked () signal accelerateClicked () signal deccelerateClicked () - ProgressCircle { id: _targetVolumeProgress - objectName : "_targetVolumeProgress" + Column { id: _contentColumn + objectName : "_contentColumn" anchors { - left : parent.left - leftMargin : Variables.defaultMargin * 2 - verticalCenter : parent.verticalCenter + top : parent.top + topMargin : Variables.defaultMargin + horizontalCenter : parent.horizontalCenter } - thickness : 35 - circleShadowColor : Colors.mainTreatmentLighterBlue - circleFillColor : Colors.mainTreatmentDarkerBlue - runAnimation : vTDTreatmentStates.rbPaused - minimum : 0 - maximum : vTreatmentRinseback.target - value : vTreatmentRinseback.current + spacing : Variables.defaultMargin * 2 - Text { id: _deliveredVolumeText - objectName : "_deliveredVolumeText" - anchors.centerIn: parent - height : contentHeight - font { - pixelSize : 76 - weight : Font.Light + ProgressCircle { id: _targetVolumeProgress + objectName : "_targetVolumeProgress" + anchors.horizontalCenter : parent.horizontalCenter + thickness : 35 + circleShadowColor : Colors.mainTreatmentLighterBlue + circleFillColor : Colors.mainTreatmentDarkerBlue + runAnimation : vTDTreatmentStates.rbPaused + minimum : 0 + maximum : vTreatmentRinseback.target + value : vTreatmentRinseback.current + + Text { id: _deliveredVolumeText + objectName : "_deliveredVolumeText" + anchors.centerIn: parent + height : contentHeight + font { + pixelSize : 76 + weight : Font.Light + } + color : Colors.textMain + text : vTreatmentRinseback.current.toFixed(0) + " " + qsTr(Variables.unitTextFluid) } - color : Colors.textMain - text : vTreatmentRinseback.current.toFixed(0) + " " + qsTr(Variables.unitTextFluid) - } - TimeText { id: _timeoutText - objectName : "_timeoutText" - anchors { - bottom : _deliveredVolumeText.top - bottomMargin : Variables.defaultMargin * 2 - horizontalCenter: parent.horizontalCenter + TimeText { id: _timeout + objectName : "_timeout" + anchors { + bottom : _deliveredVolumeText.top + bottomMargin : Variables.defaultMargin * 2 + horizontalCenter: parent.horizontalCenter + } + textPixelSize : 30 + textWeight : Font.Normal + secondsVisible : false + seconds : vTreatmentRinseback.timeoutCountDown * 60 + visible : vTreatmentRinseback.timeoutTotal } - textPixelSize : 30 - textWeight : Font.Normal - secondsVisible : false - seconds : vTreatmentRinseback.timeoutCountDown * 60 - visible : vTreatmentRinseback.timeoutTotal - } - NotificationBarSmall { id: _pausedNotification - objectName : "_pausedNotification" - anchors { - top : _deliveredVolumeText.bottom - bottom : undefined - topMargin : _timeoutText.anchors.bottomMargin + NotificationBarSmall { id: _pausedNotification + objectName : "_pausedNotification" + anchors { + top : _deliveredVolumeText.bottom + bottom : undefined +<<<<<<< Updated upstream + topMargin : _timeoutText.anchors.bottomMargin +======= + topMargin : _timeout.anchors.bottomMargin +>>>>>>> Stashed changes + } + visible : vTDTreatmentStates.rbPaused + height : 25 + color : "transparent" + imageDiameter : 25 + imageTopMargin : 4 + imageSource : "qrc:/images/iPauseOrange" + text : "Rinseback Paused" + textColor : Colors.mainTreatmentOrange + textfontSize : 22 + textfontWeight : Font.Medium } - visible : vTDTreatmentStates.rbPaused - height : 25 - color : "transparent" - imageDiameter : 25 - imageTopMargin : 4 - imageSource : "qrc:/images/iPauseOrange" - text : "Rinseback Paused" - textColor : Colors.mainTreatmentOrange - textfontSize : 22 - textfontWeight : Font.Medium } - } - TreatmentSection { id: _treatmentFlowRate - objectName : "_treatmentFlowRate" - anchors { - left : _targetVolumeProgress.right - leftMargin : Variables.defaultMargin - right : _treatmentPressures.left - rightMargin : Variables.defaultMargin - verticalCenter : parent.verticalCenter - } - height : _treatmentPressures.height - header { - title : qsTr("Rinseback Flow Rate") - showEdit : false - } - contentItem : Item { id: _flowRateItem - objectName: "_flowRatItem" + Row { id: _bottomContentRow + objectName : "_bottomContentRow" + anchors.horizontalCenter : parent.horizontalCenter + spacing : Variables.defaultMargin - Item { id: _flowRateControlArea - objectName : "_flowRateControlArea" - anchors { - top : parent.top - bottom : _flowRateButtonRow.top - bottomMargin : Variables.defaultMargin * 2 - left : parent.left - leftMargin : Variables.defaultMargin - right : parent.right - rightMargin : anchors.leftMargin + TreatmentSection { id: _treatmentFlowRate + objectName : "_treatmentFlowRate" + anchors.verticalCenter : parent.verticalCenter + width : _flowRateItem.childrenRect.width + (Variables.defaultMargin * 2) + height : _treatmentPressures.height + header { + title : qsTr("Rinseback Flow Rate") + showEdit : false } + contentItem : Item { id: _flowRateItem + objectName: "_flowRatItem" - Item { id: _flowRateValueItem - objectName : "_flowRateValueItem" - anchors.centerIn : parent - width : childrenRect.width - height : childrenRect.height - - ArrowButton { id: _decrementFlowRateButton - objectName : "_decrementFlowRateButton" + Item { id: _flowRateControlArea + objectName : "_flowRateControlArea" anchors { + top : parent.top + bottom : _flowRateButtonRow.top + bottomMargin : Variables.defaultMargin * 2 left : parent.left - verticalCenter : _flowRateValue.verticalCenter + leftMargin : Variables.defaultMargin + right : parent.right + rightMargin : anchors.leftMargin } - leftArrow : true - enabled : vTreatmentRinseback.rate > vTreatmentRanges.rinsebackFlowRateMin - onClicked : { _root.deccelerateClicked() } - } + Item { id: _flowRateValueItem + objectName : "_flowRateValueItem" + anchors.centerIn : parent + width : childrenRect.width + height : childrenRect.height - Text { id: _flowRateValue - objectName : "_flowRateValue" - anchors { - top : parent.top - left : _decrementFlowRateButton.right - leftMargin : Variables.defaultMargin - } - width : 200 - height : Variables.defaultButtonHeight - font { - pixelSize : Fonts.fontPixelVitals - weight : Font.Medium - } - color : Colors.textTextRectLabel - horizontalAlignment : Text.AlignHCenter - verticalAlignment : Text.AlignVCenter - text : vTreatmentRinseback.rate - } + ArrowButton { id: _decrementFlowRateButton + objectName : "_decrementFlowRateButton" + anchors { + left : parent.left + verticalCenter : _flowRateValue.verticalCenter + } + leftArrow : true + enabled : vTreatmentRinseback.rate > vTreatmentRanges.rinsebackFlowRateMin - Text { id: _flowRateUnit - objectName : "_flowRateUnit" - anchors { - top : _flowRateValue.bottom - topMargin : Variables.defaultMargin - horizontalCenter : _flowRateValue.horizontalCenter + onClicked : { _root.deccelerateClicked() } + } + + Text { id: _flowRateValue + objectName : "_flowRateValue" + anchors { + top : parent.top + left : _decrementFlowRateButton.right + leftMargin : Variables.defaultMargin + } + width : 200 + height : Variables.defaultButtonHeight + font { + pixelSize : Fonts.fontPixelVitals + weight : Font.Medium + } + color : Colors.textTextRectLabel + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + text : vTreatmentRinseback.rate + } + + Text { id: _flowRateUnit + objectName : "_flowRateUnit" + anchors { + top : _flowRateValue.bottom + topMargin : Variables.defaultMargin + horizontalCenter : _flowRateValue.horizontalCenter + } + width : contentWidth + height : contentHeight + font { + pixelSize : Fonts.fontPixelContainerUnit + weight : Font.Thin + } + color : Colors.offWhite + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + text : Variables.unitTextFlowRate + } + + ArrowButton { id: _incrementFlowRateButton + objectName : "_incrementFlowRateButton" + anchors { + left : _flowRateValue.right + leftMargin : _flowRateValue.anchors.leftMargin + verticalCenter : _flowRateValue.verticalCenter + } + rightArrow : true + enabled : vTreatmentRinseback.rate < vTreatmentRanges.rinsebackFlowRateMax + + onClicked : { _root.accelerateClicked() } + } } - width : contentWidth - height : contentHeight - font { - pixelSize : Fonts.fontPixelContainerUnit - weight : Font.Thin - } - color : Colors.offWhite - horizontalAlignment : Text.AlignHCenter - verticalAlignment : Text.AlignVCenter - text : Variables.unitTextFlowRate } - ArrowButton { id: _incrementFlowRateButton - objectName : "_incrementFlowRateButton" + Row { id: _flowRateButtonRow + objectName: "_flowRateButtonRow" anchors { - left : _flowRateValue.right - leftMargin : _flowRateValue.anchors.leftMargin - verticalCenter : _flowRateValue.verticalCenter + bottom : parent.bottom + horizontalCenter: parent.horizontalCenter + margins : Variables.defaultMargin } - rightArrow : true - enabled : vTreatmentRinseback.rate < vTreatmentRanges.rinsebackFlowRateMax + spacing: Variables.defaultMargin * 2 - onClicked : { _root.accelerateClicked() } - } - } - } + TouchRect { id: _endButton + objectName : "_endButton" + width : Variables.defaultButtonWidth + height : Variables.defaultButtonHeight + text { + text : qsTr("End Rinseback") + font.weight : Font.Medium + } + isDefault : true + enabled : true - Row { id: _flowRateButtonRow - objectName: "_flowRateButtonRow" - anchors { - bottom : parent.bottom - horizontalCenter: parent.horizontalCenter - margins : Variables.defaultMargin - } - spacing: Variables.defaultMargin * 2 + onClicked : { _root.endClicked() } + } - TouchRect { id: _endButton - objectName : "_endButton" - width : Variables.defaultButtonWidth - height : Variables.defaultButtonHeight - text { - text : qsTr("End Rinseback") - font.weight : Font.Medium - } - isDefault : true - enabled : true + TouchRect { id: _pauseResumeButton + objectName: "_pauseResumeButton" + width : Variables.defaultButtonWidth + height : Variables.defaultButtonHeight + text { + text : vTDTreatmentStates.rbPaused ? qsTr("Resume Rinseback") : qsTr("Pause Rinseback") + font.weight : Font.Medium + } + isDefault : true + enabled : true - onClicked : { _root.endClicked() } - } - - TouchRect { id: _pauseResumeButton - objectName: "_pauseResumeButton" - width : Variables.defaultButtonWidth - height : Variables.defaultButtonHeight - text { - text : vTDTreatmentStates.rbPaused ? qsTr("Resume Rinseback") : qsTr("Pause Rinseback") - font.weight : Font.Medium + onClicked : { vTDTreatmentStates.rbPaused + ? _root.resumeClicked() + : _root.pauseClicked() + } + } } - isDefault : true - enabled : true - - onClicked : { vTDTreatmentStates.rbPaused - ? _root.resumeClicked() - : _root.pauseClicked() - } } } - } - } - TreatmentPressures { id: _treatmentPressures - objectName : "_treatmentPressures" - anchors { - right : parent.right - rightMargin : Variables.defaultMargin * 2 - verticalCenter : parent.verticalCenter + TreatmentPressures { id: _treatmentPressures + objectName : "_treatmentPressures" + anchors.verticalCenter : parent.verticalCenter + width : 750 + height : 420 + header.showEdit : false + } } - width : 750 - height : 420 - header.showEdit : false } } Index: sources/gui/qml/pages/treatment/TreatmentStack.qml =================================================================== diff -u -rc9764bd0ad823c5c1725d7c7f556290c2c459d4d -r07fa2cd47bf538e89c48fc7d425674f20afc9f2a --- sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision c9764bd0ad823c5c1725d7c7f556290c2c459d4d) +++ sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -15,6 +15,7 @@ // Qt import QtQuick 2.12 +import QtQuick.Controls 2.12 // StackView // Qml imports import "qrc:/components" @@ -73,9 +74,16 @@ } // Components - TreatmentBloodPrime { id: _treatmentBloodPrime } - TreatmentHome { id: _treatmentHome } + TreatmentBloodPrime { id: _treatmentBloodPrime + StackView.onActivating : { + _headerBar.titleText = qsTr("Blood Priming") + } + StackView.onDeactivating : { + _headerBar.titleText = "" + } + } + TreatmentHome { id: _treatmentHome } Connections { target: _treatmentHome function onSectionFlowClicked ( vValue ) { _treatmentAdjustmentSetPoints.open() Fisheye: Tag 07fa2cd47bf538e89c48fc7d425674f20afc9f2a refers to a dead (removed) revision in file `sources/model/hd/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 07fa2cd47bf538e89c48fc7d425674f20afc9f2a refers to a dead (removed) revision in file `sources/model/hd/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h'. Fisheye: No comparison available. Pass `N' to diff? Index: sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp =================================================================== diff -u --- sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp (revision 0) +++ sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.cpp (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -0,0 +1,49 @@ +/*! + * + * 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 MTreatmentAdjustRinsebackResponse.cpp + * \author (last) Behrouz NematiPour + * \date (last) 11-Apr-2021 + * \author (original) Behrouz NematiPour + * \date (original) 11-Apr-2021 + * + */ +#include "MTreatmentAdjustRinsebackResponse.h" + +using namespace Model; + +QVariantList MAdjustRinsebackResponse::parameters() const { + return { + _data.mAccepted.value, + _data.mReason .value, + }; +} + +bool MAdjustRinsebackResponse::fromByteArray(const QByteArray &vByteArray, int *vIndex) { + int index = 0; // message data start position + if ( ! GetValue(vByteArray, index, _data.mAccepted )) goto lError; + if ( ! GetValue(vByteArray, index, _data.mReason )) goto lError; + + return true ; + +lError: + if(vIndex) { *vIndex = index; } + + return false ; +} + +/*! + * \brief MAdjustRinsebackResponse::data + * \details Provides model's Data from the received messages data values + * \return Data + */ +AdjustRinsebackResponseData MAdjustRinsebackResponse::data() const { + Data data; + data.mAccepted = _data.mAccepted.value; + data.mReason = _data.mReason .value; + return data; +} Index: sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h =================================================================== diff -u --- sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h (revision 0) +++ sources/model/td/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h (revision 07fa2cd47bf538e89c48fc7d425674f20afc9f2a) @@ -0,0 +1,84 @@ +/*! + * + * 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 MTreatmentAdjustRinsebackResponse.h + * \author (last) Behrouz NematiPour + * \date (last) 11-Apr-2021 + * \author (original) Behrouz NematiPour + * \date (original) 11-Apr-2021 + * + */ +#pragma once + +// Qt +#include + +// Project +#include "MAbstract.h" +#include "types.h" + +// forward declarations +class tst_models; + +namespace Model { + +/*! + * \brief The MAdjustRinsebackResponse class + * \details The Rinseback adjustment response model + * + * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | + * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:----------------: | + * |0x5300| 0x020 | 6 | Rsp | Y | HD | UI | Rinseback Response | + * + * | Payload || + * | || + * | #1:(U32) | \ref Data::mAccepted | + * | #2:(U32) | \ref Data::mReason | + * + * \sa Data + * \sa MAdjustRinsebackReq : Rinseback Request + * \sa MTreatmentRinseback : Rinseback Data + * + *

Logging info

+ * | || + * | || + * | typeText | Event | + * | unitText | HD | + * | infoText | AdjustRinseback | + * + */ +class MAdjustRinsebackResponse : public MAbstract { + + // friends + friend class ::tst_models; + + QVariantList parameters() const override; + + struct { + Types::U32 mAccepted; + Types::U32 mReason ; + } _data; + +public: + + Type_Enum typeText () const override { return Type_Enum::eEvent ; } + Unit_Enum unitText () const override { return Unit_Enum::eTD ; } + QString infoText () const override { return QString("AdjustRinseback") ; } + + struct Data { + bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ + quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ + }; + + MAdjustRinsebackResponse () { } + + bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; + Data data ( ) const ; +}; +} + +typedef Model::MAdjustRinsebackResponse::Data AdjustRinsebackResponseData;