Index: sources/view/VVitals.h =================================================================== diff -u -r510ea07f96362a18f9961f41b5b91740df075c1f -ra47e7059c91c50cee3e05972fe5d96c053cdfb31 --- sources/view/VVitals.h (.../VVitals.h) (revision 510ea07f96362a18f9961f41b5b91740df075c1f) +++ sources/view/VVitals.h (.../VVitals.h) (revision a47e7059c91c50cee3e05972fe5d96c053cdfb31) @@ -6,6 +6,7 @@ #include // Project +#include "VView.h" #include "BLEScanner.h" #include "main.h" #include "GuiController.h" @@ -31,10 +32,14 @@ bool _inTreatmentMode = false; bool _enterManually = false; QDateTime _lastNotification; + int _timerInterval = 1000; // ms + int _timerID = -1; -public: - explicit VVitals(QObject *parent = nullptr); + void timerEvent(QTimerEvent *event); + void notifyTakeMeasurement(); +VIEW_DEC_CLASS(VVitals) + protected: // coco begin validated: Has been validated manually PROPERTY(quint32, bloodPressureSystolic, 0) @@ -53,6 +58,5 @@ void onReceiveAlertResponse(const GuiAlertResponseData &vResponse); void onActionReceive(const TreatmentStartResponseData &vResponse); void onHDOperationModeUpdate(const HDOperationModeData &vHDOpMode); - void onTimeout(); }; }