Index: sources/bluetooth/BluetoothInterface.h =================================================================== diff -u -r1d6adeff8df4dc9395d6a2aee3c7f33d903c4711 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/bluetooth/BluetoothInterface.h (.../BluetoothInterface.h) (revision 1d6adeff8df4dc9395d6a2aee3c7f33d903c4711) +++ sources/bluetooth/BluetoothInterface.h (.../BluetoothInterface.h) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,14 +1,16 @@ /*! + * + * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * 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 BluetoothInterface.h - * \author (last) Behrouz NematiPour + * \author (last) Vy + * \date (last) 05-Sep-2023 * \author (original) Behrouz NematiPour - * \date (last) 22-Aug-2021 - * \date (original) 22-Aug-2021 + * \date (original) 24-Aug-2021 + * */ #pragma once @@ -80,19 +82,21 @@ public: bool isValid( ) const { return _isValid ; } void valid(bool vValid) { _isValid = vValid; } + void mimic(quint16 vSystolic , + quint16 vDiastolic , + quint16 vPulseRate ); protected: void timerEvent(QTimerEvent *event) override; public slots: bool init(); bool init(QThread &vThread); + void quit(); void doNotifyStatePOSTError(); private slots: - void quit(); - // Local Device Slots void onLocalDeviceConnect (const QBluetoothAddress &vAddress ); void onLocalDeviceDisconnect (const QBluetoothAddress &vAddress ); @@ -125,7 +129,7 @@ void onAttributeResponse (const DeviceBluetoothPairedQueryResponseData &vData); private: - bool startScan (); + bool startScan (bool vQuitDevice); bool stopScan (); void initConnections (); @@ -160,11 +164,11 @@ 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); - signals: void didStateChange (const BluetoothData &vData); void didActionReceive (const UIBloodPressureData &vData);