Index: sources/gui/guiglobals.h =================================================================== diff -u -rfef563aa317eb3e025e2dab0264e854f05a216d6 -rf148379112a69d1c52027f2667e95f3f96d948ad --- sources/gui/guiglobals.h (.../guiglobals.h) (revision fef563aa317eb3e025e2dab0264e854f05a216d6) +++ sources/gui/guiglobals.h (.../guiglobals.h) (revision f148379112a69d1c52027f2667e95f3f96d948ad) @@ -120,13 +120,32 @@ NUM_OF_ALARM_IDS }; + enum GuiRequestReasons_Enum + { + REASON_NONE = 0, ///< No reason. + REASON_NOT_ALLOWED_IN_CURRENT_MODE, ///< Request is not allowed in the current operating mode. + REASON_TIMEOUT_WAITING_FOR_USER_CONFIRM, ///< Validated request was not confirmed by user in reasonable time. + REASON_NOT_IN_TREATMENT_MODE, ///< Request is not allowed if not in treatment mode. + REASON_INVALID_TREATMENT_STATE, ///< Request is not allowed in current treatment state. + REASON_TREATMENT_TOO_CLOSE_TO_FINISHED, ///< Request is not allowed so near end of treatment. + REASON_TREATMENT_TIME_OUT_OF_RANGE, ///< Treatment duration is out of range. + REASON_TREATMENT_TIME_LESS_THAN_CURRENT, ///< Treatment time change is less than currently elapsed treatment time. + REASON_BLOOD_FLOW_OUT_OF_RANGE, ///< Blood flow is out of range. + REASON_DIAL_FLOW_OUT_OF_RANGE, ///< Dialysate flow is out of range. + REASON_DIAL_VOLUME_OUT_OF_RANGE, ///< Dialysate flow rate or treatment duration causes dialysate volume to exceed limit. + REASON_UF_VOLUME_OUT_OF_RANGE, ///< Ultrafiltration volume is out of range. + REASON_UF_RATE_OUT_OF_RANGE, ///< Ultrafiltration rate is out of range. + NUM_OF_REQUEST_REJECT_REASONS ///< Number of settings change reject codes. + }; Q_ENUM(GuiActionsType_Enum) Q_ENUM(GuiActionsData_Enum) Q_ENUM(GuiActionsIndx_Enum) Q_ENUM(GuiAlarmPriority_Enum) Q_ENUM(GuiAlarmID_Enum) + + Q_ENUM(GuiRequestReasons_Enum) }; // to be able to use the enum as signal/slot parameter @@ -137,6 +156,8 @@ typedef GuiActions::GuiAlarmPriority_Enum GuiAlarmPriority; typedef GuiActions::GuiAlarmID_Enum GuiAlarmID; + typedef GuiActions::GuiRequestReasons_Enum GuiRequestReasons; + void registerTypes(); void registerQmlTypes();