Index: HDDefs.h =================================================================== diff -u -re8d3650276a3e98a466190962d6b4868bc6ddbe0 -r60387d4e3a813bfa5b313cd4b92103815289a871 --- HDDefs.h (.../HDDefs.h) (revision e8d3650276a3e98a466190962d6b4868bc6ddbe0) +++ HDDefs.h (.../HDDefs.h) (revision 60387d4e3a813bfa5b313cd4b92103815289a871) @@ -7,8 +7,8 @@ * * @file HDDefs.h * -* @author (last) Dong Nguyen -* @date (last) 14-Sep-2022 +* @author (last) Behrouz NematiPour +* @date (last) 04-Oct-2022 * * @author (original) Sean Nash * @date (original) 29-May-2020 @@ -739,6 +739,48 @@ }; typedef enum HD_Event_List HD_EVENT_ID_T; ///< Type for HD event list enumeration +/// Enumeration of generic confirmation request type from HD to UI. +enum Generic_Confirm_Command +{ + GENERIC_CONFIRM_CMD_REQUEST_OPEN = 0, ///< Generic Confirm command to display the confirmation + GENERIC_CONFIRM_CMD_TIMEOUT_CLOSE = 1, ///< Generic Confirm command to hide the confirmation, due to timeout user confirmation + GENERIC_CONFIRM_CMD_REJECT = 2, ///< Generic Confirm command to display the confirmation rejection in case the request in not valid/accepted anymore. + GENERIC_CONFIRM_CMD_ACCEPT_CLOSE = 3, ///< Generic Confirm command to hide the confirmation, due to accept user confirmation. + NUM_OF_GENERIC_CONFIRM_COMMAND ///< Total number of generic confirm commands +}; +typedef enum Generic_Confirm_Command GENERIC_CONFIRM_COMMAND_T; ///< Type for generic confirm enumeration + /**@}*/ +/** + * @addtogroup UIUserConfirm + * @{ + */ + +/// Enumeration of generic confirmation id between HD and UI. +enum Generic_Confirm_Id +{ + GENERIC_CONFIRM_ID_NONE = 0, ///< Generic Confirm None + GENERIC_CONFIRM_ID_DISINFECT_STOP_WATERFLUSH, ///< water flush stop user confirmation + GENERIC_CONFIRM_ID_DISINFECT_STOP_HEAT, ///< Heat disinfect stop user confirmation + GENERIC_CONFIRM_ID_DISINFECT_STOP_CHEMICAL, ///< Chemical disinfect stop user confirmation + NUM_OF_GENERIC_CONFIRM_IDS, ///< Total number of generic confirm IDs +}; +typedef enum Generic_Confirm_Id GENERIC_CONFIRM_ID_T; ///< Type for generic confirm enumeration + +/**@}*/ + +/// List of confirmation request status +typedef enum Confirmation_Status +{ + CONFIRMATION_REQUEST_STATUS_REJECTED = 0, ///< Confirmation status rejected + CONFIRMATION_REQUEST_STATUS_ACCEPTED, ///< Confirmation status accepted + CONFIRMATION_REQUEST_STATUS_TIMEOUT, ///< Confirmation status timeout + CONFIRMATION_REQUEST_STATUS_PENDING, ///< Confirmation status pending response + CONFIRMATION_REQUEST_STATUS_UNUSED, ///< Confirmation status Unused + NUM_OF_CONFIRMATION_REQUEST_STATUS ///< Number of confirmation status +} CONFIRMATION_REQUEST_STATUS_T; + +/**@}*/ + #endif