Index: sources/gui/GuiGlobals.h =================================================================== diff -u -re58be51c4aa52938af250db3ee579e98de08542c -r5384b4f5833568db90b988b11bbd502386d2f9b2 --- sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision e58be51c4aa52938af250db3ee579e98de08542c) +++ sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision 5384b4f5833568db90b988b11bbd502386d2f9b2) @@ -92,13 +92,13 @@ ID_AlarmUserAckReq = 0x3F00, // 63 ID_AlarmSilenceReq = 0x3200, // 50 - ID_CreateTreatmentReq = 0x3500, // 53 - ID_CreateTreatmentRsp = 0x3600, // 54 - ID_StartTreatmentReq = 0x3800, // 56 - ID_StartTreatmentRsp = 0x3900, // 57 - ID_ConfirmTreatmentReq = 0x3A00, // 58 - ID_EndTreatmentReq = 0x3C00, // 60 - ID_EndTreatmentRsp = 0x3D00, // 61 + ID_TreatmentCreateReq = 0x3500, // 53 + ID_TreatmentCreateRsp = 0x3600, // 54 + ID_TreatmentStartReq = 0x3800, // 56 + ID_TreatmentStartRsp = 0x3900, // 57 + ID_TreatmentConfirmReq = 0x3B00, // 59 + ID_TreatmentEndReq = 0x3C00, // 60 + ID_TreatmentEndRsp = 0x3D00, // 61 ID_PrimingData = 0x4300, // 67 @@ -148,6 +148,23 @@ Timeout = 0x01, }; + enum AlertID { + ID_Alert_None = 0, + ID_Alert_BLE_Connection, + ID_Alert_BLE_Measurement_Timeout + }; + + struct AlertRequest { + AlertID id; + QString title; + QString description; + }; + + struct AlertResponse { + AlertID id; + bool confirmed = false; + }; + Q_ENUM(GuiActionsType_Enum) Q_ENUM(GuiActionsData_Enum) @@ -188,6 +205,10 @@ typedef GuiActions::UF_States GuiUFStates; typedef GuiActions::Saline_Bolus_States GuiSalineStates; + typedef GuiActions::AlertID GuiAlertID; + typedef GuiActions::AlertRequest GuiAlertRequestData; + typedef GuiActions::AlertResponse GuiAlertResponseData; + void registerTypes(); void registerQmlTypes();