Index: sources/view/confirm/VConfirm.cpp =================================================================== diff -u -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 -r40c81d8364424610feeffeb5ac30e990105c8c00 --- sources/view/confirm/VConfirm.cpp (.../VConfirm.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) +++ sources/view/confirm/VConfirm.cpp (.../VConfirm.cpp) (revision 40c81d8364424610feeffeb5ac30e990105c8c00) @@ -93,6 +93,14 @@ id ( vData.mId ); } +void View::VConfirm::sendDryDemoCommand(quint32 vCommandID) +{ + DuetConfirmUIrData data; + data.mId = DRY_DEMO_COMMAND; + data.mConfirm = vCommandID; + emit didAdjustment(data); +} + /*! * \brief View::VConfirm::setPowerOffCommand */ @@ -125,6 +133,19 @@ id ( 0 ); } +void View::VConfirm::setDryDemoStatus(const DuetConfirmHDiData &vData) +{ + enum User_Command_ID { + CMD_ULTRAFILTRATION = 7, + CMD_CONNECTION = 8, + }; + + if ( ! gEnableDryDemo ) return; + qDebug() << "Dry Demo status" << vData.mId; + isUltrafilt (vData.mId == CMD_ULTRAFILTRATION); + isConnection(vData.mId == CMD_CONNECTION ); +} + /*! * \brief VConfirm::onActionReceive * \details received response model data handler @@ -136,6 +157,7 @@ setConfirmCommand ( vData ); setConfirmId ( vData ); + setDryDemoStatus ( vData ); // *** 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. ***