Index: sources/gui/GuiGlobals.h =================================================================== diff -u -r4bbec52d2257cfdef37604e3453846e501a2af91 -r66e87ea403ec12a273553284919684282d87bc6a --- sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision 4bbec52d2257cfdef37604e3453846e501a2af91) +++ sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision 66e87ea403ec12a273553284919684282d87bc6a) @@ -93,13 +93,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 @@ -154,6 +154,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) @@ -202,6 +219,10 @@ typedef GuiActions::Heparin_Commands GuiHeparinCommands; typedef GuiActions::Heparin_States GuiHeparinStates; + typedef GuiActions::AlertID GuiAlertID; + typedef GuiActions::AlertRequest GuiAlertRequestData; + typedef GuiActions::AlertResponse GuiAlertResponseData; + void registerTypes(); void registerQmlTypes();