Index: sources/gui/guiglobals.h =================================================================== diff -u -r4a6abe765f03feae8100ec660aa04aa218d4dfa3 -r8f6f7c11390e3ed6d918f1717d8e8b7ae5b7e5c6 --- sources/gui/guiglobals.h (.../guiglobals.h) (revision 4a6abe765f03feae8100ec660aa04aa218d4dfa3) +++ sources/gui/guiglobals.h (.../guiglobals.h) (revision 8f6f7c11390e3ed6d918f1717d8e8b7ae5b7e5c6) @@ -42,8 +42,13 @@ AlarmTriggered = 0x0300, AlarmCleared = 0x0400, - PressureOcclusion = 0x0900, + PressureOcclusion = 0x0900, // message 9 + AdjustBloodDialysateReq = 0x1700, // 23 + AdjustBloodDialysateRsp = 0x1800, // 24 + + TreatmentRanges = 0x1A00, // 26 + String = 0xFFFE, Acknow = 0xFFFF, @@ -117,13 +122,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 @@ -134,6 +158,8 @@ typedef GuiActions::GuiAlarmPriority_Enum GuiAlarmPriority; typedef GuiActions::GuiAlarmID_Enum GuiAlarmID; + typedef GuiActions::GuiRequestReasons_Enum GuiRequestReasons; + void registerTypes(); void registerQmlTypes();