Index: sources/view/hd/adjustment/common/VCommonAdjustmentVitals.cpp =================================================================== diff -u -r736a7be958ca343f17b50e9e0d85cd395e8037e7 -rfad1a894d3a4fb4558d91481d026c0ebcf205366 --- sources/view/hd/adjustment/common/VCommonAdjustmentVitals.cpp (.../VCommonAdjustmentVitals.cpp) (revision 736a7be958ca343f17b50e9e0d85cd395e8037e7) +++ sources/view/hd/adjustment/common/VCommonAdjustmentVitals.cpp (.../VCommonAdjustmentVitals.cpp) (revision fad1a894d3a4fb4558d91481d026c0ebcf205366) @@ -33,6 +33,12 @@ ACTION_RECEIVE_BRIDGE_CONNECTION( Gui::_GuiController, TreatmentVitalsData); } +/*! + * \brief View::VTreatmentVitals::onActionReceive + * \details The data handler which gets the data from the integreated Blood Pressure cuff. + * \param TreatmentVitalsData - Vital values + * \note the accepted and reason in this case should be the integreated Blood Pressure cuff status which may not necessarily comes from the cuff itself. + */ void View::VTreatmentVitals::onActionReceive(const TreatmentVitalsData &vData) { update_rt (vData.mSystolic, vData.mDiastolic, vData.mHeartRate); @@ -153,7 +159,6 @@ if ( ! _timerId ) return; // No timer started or failed starting if ( ! _interval ) return; // if interval is 0/OFF return - // DEBUG: qDebug() << __FUNCTION__ << _counter_sec << _counter_min << _interval << _timerId; _counter_sec++; min_left(_counter_min ); @@ -173,9 +178,13 @@ } } +/*! + * \brief View::VTreatmentVitals::onIntervalChanged + * \details Resets or stops the timer depending on whether an interval + * is currently set. + */ void View::VTreatmentVitals::onIntervalChanged() { - // DEBUG: qDebug() << __FUNCTION__ << _counter_sec << _counter_min << _interval << _timerId; if ( _interval ) timerReset(); else timerStop (); // Timer stop is resetting timer too. } @@ -189,11 +198,14 @@ { if ( _timerId ) killTimer(_timerId); // this typically should not happen. if ( ! _interval ) return; // if interval is 0/OFF return - // DEBUG: qDebug() << __FUNCTION__ << _counter_sec << _counter_min << _interval << _timerId; timerReset(); _timerId = startTimer(1000); // 1 sec interval which will used as 1 min in timerEvent (easier to debug) } +/*! + * \brief View::VTreatmentVitals::timerReset + * \details Resets the timer counters based on the current interval. + */ void View::VTreatmentVitals::timerReset() { if ( _interval ) { @@ -204,7 +216,6 @@ _counter_min = 0; } _counter_sec = 0; - // DEBUG: qDebug() << __FUNCTION__ << _counter_sec << _counter_min << _interval << _timerId; } /*! @@ -214,7 +225,6 @@ void View::VTreatmentVitals::timerStop() { if ( ! _timerId ) return; // No timer started or failed starting - // DEBUG: qDebug() << __FUNCTION__ << _counter_sec << _counter_min << _interval << _timerId; killTimer(_timerId); _timerId = 0; timerReset();