Index: sources/gui/GuiGlobals.h =================================================================== diff -u -r666594860f4ea32da9a2bd362d40325b881b11f9 -r5384b4f5833568db90b988b11bbd502386d2f9b2 --- sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision 666594860f4ea32da9a2bd362d40325b881b11f9) +++ sources/gui/GuiGlobals.h (.../GuiGlobals.h) (revision 5384b4f5833568db90b988b11bbd502386d2f9b2) @@ -92,9 +92,6 @@ ID_AlarmUserAckReq = 0x3F00, // 63 ID_AlarmSilenceReq = 0x3200, // 50 - ID_AlertReq = ID_Unknown, - ID_AlertUserReq = ID_Unknown, - ID_TreatmentCreateReq = 0x3500, // 53 ID_TreatmentCreateRsp = 0x3600, // 54 ID_TreatmentStartReq = 0x3800, // 56 @@ -151,12 +148,20 @@ 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; }; @@ -200,6 +205,7 @@ typedef GuiActions::UF_States GuiUFStates; typedef GuiActions::Saline_Bolus_States GuiSalineStates; + typedef GuiActions::AlertID GuiAlertID; typedef GuiActions::AlertRequest GuiAlertRequestData; typedef GuiActions::AlertResponse GuiAlertResponseData;