Index: sources/bluetooth/BluetoothInterface.cpp =================================================================== diff -u -rec36df2f94c93e62095f49c7f65a30c2d508a579 -reb6e7c4cd003132f309ac54b436e93a72e599975 --- sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision ec36df2f94c93e62095f49c7f65a30c2d508a579) +++ sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision eb6e7c4cd003132f309ac54b436e93a72e599975) @@ -1131,6 +1131,34 @@ } /*! + * \brief BluetoothInterface::notifyBloodPressure + * \details The main notifier of the Vital measurement. + * \param vModel - The Blood pressure model of type MUIBloodPressure + */ +void BluetoothInterface::notifyBloodPressure(const MUIBloodPressure &vModel) +{ + UIBloodPressureData data = vModel.data(); + emit didActionReceive(data); + LOG_EVENT(vModel.toString()); +} + +/*! + * \brief BluetoothInterface::mimic + * \details A mimic function to simulate the vital measured values. + * \param vSystolic - Systolic Viral value + * \param vDiastolic - Diastolic Viral value + * \param vPulseRate - Pulse Rate Viral value + */ +void BluetoothInterface::mimic( quint16 vSystolic , + quint16 vDiastolic , + quint16 vPulseRate ) { + MUIBloodPressure model(vSystolic , + vDiastolic , + vPulseRate ); + notifyBloodPressure(model); +} + +/*! * \brief BluetoothInterface::interpretBloodPressure * \details Interpreting the blood pressure message QByteArray vData and extracting the values of Systolic, Diastolic, HeartRate. * \param vData - the received QByteArray of data. @@ -1139,10 +1167,7 @@ { MUIBloodPressure model; model.fromByteArray(vData); - UIBloodPressureData data = model.data(); - qDebug() << "==========" << data.mSystolic << data.mDiastolic << data.mPulseRate; - emit didActionReceive(data); - LOG_EVENT(model.toString()); + notifyBloodPressure(model); } /*! Index: sources/bluetooth/BluetoothInterface.h =================================================================== diff -u -r1d6adeff8df4dc9395d6a2aee3c7f33d903c4711 -reb6e7c4cd003132f309ac54b436e93a72e599975 --- sources/bluetooth/BluetoothInterface.h (.../BluetoothInterface.h) (revision 1d6adeff8df4dc9395d6a2aee3c7f33d903c4711) +++ sources/bluetooth/BluetoothInterface.h (.../BluetoothInterface.h) (revision eb6e7c4cd003132f309ac54b436e93a72e599975) @@ -80,6 +80,9 @@ public: bool isValid( ) const { return _isValid ; } void valid(bool vValid) { _isValid = vValid; } + void mimic(const quint16 vSystolic , + const quint16 vDiastolic , + const quint16 vPulseRate ); protected: void timerEvent(QTimerEvent *event) override; @@ -160,6 +163,7 @@ void printCharacteristics (QLowEnergyService *vService); void notifyStateChange (const BluetoothData &vData); + void notifyBloodPressure (const MUIBloodPressure &vModel); void interpretBloodPressure (const QByteArray &vData); void interpretInformation (); void interpretBattery (const QByteArray &vData); Index: sources/gui/qml/main.qml =================================================================== diff -u -rbefa8e7e7667c4aa5193022bd80e9f52c2374ad0 -reb6e7c4cd003132f309ac54b436e93a72e599975 --- sources/gui/qml/main.qml (.../main.qml) (revision befa8e7e7667c4aa5193022bd80e9f52c2374ad0) +++ sources/gui/qml/main.qml (.../main.qml) (revision eb6e7c4cd003132f309ac54b436e93a72e599975) @@ -318,7 +318,7 @@ } // keyboard should always be before AlarmItem to not to covet it. - Keyboard { id: _keyboard } + VirtualKeyboard { id: _keyboard } // AlarmItem should always be at the end so nothing covers it AlarmItem { id: _alarmItem ; z: 997 } @@ -340,5 +340,4 @@ timeout : _alarmItem.timeout backgroundFading : vHDOperationMode.fault } - } Index: sources/gui/qml/pages/pretreatment/connection/PreTreatmentConnectionStack.qml =================================================================== diff -u -rbefa8e7e7667c4aa5193022bd80e9f52c2374ad0 -reb6e7c4cd003132f309ac54b436e93a72e599975 --- sources/gui/qml/pages/pretreatment/connection/PreTreatmentConnectionStack.qml (.../PreTreatmentConnectionStack.qml) (revision befa8e7e7667c4aa5193022bd80e9f52c2374ad0) +++ sources/gui/qml/pages/pretreatment/connection/PreTreatmentConnectionStack.qml (.../PreTreatmentConnectionStack.qml) (revision eb6e7c4cd003132f309ac54b436e93a72e599975) @@ -64,8 +64,8 @@ } } onVisibleChanged: { - if ( visible ) - vTreatmentVitals.doReset(true) + if ( visible ) vTreatmentVitals.doReset() + vTreatmentVitals.enableUpdate = visible } }