From e24d7c855e3dd7ccbd6583e51fd59f51baf88588 Mon Sep 17 00:00:00 2001 From: Jakub Pyszczak Date: Thu, 11 Feb 2021 16:00:35 +0100 Subject: [PATCH] [EGD-5541] Sim card check refactor Moved checking for a SIM card logic from application level to service cellular. Provided an action in response to application messages. --- .../ApplicationMessages.cpp | 21 ++++++++++--------- .../ApplicationMessages.hpp | 7 +++++-- .../windows/NewMessage.cpp | 10 --------- .../model/ApplicationManager.cpp | 1 + .../service-appmgr/service-appmgr/Actions.hpp | 1 + .../service-cellular/ServiceCellular.cpp | 14 +++++++++++++ .../service-cellular/CellularMessage.hpp | 15 ++++++++++++- 7 files changed, 46 insertions(+), 23 deletions(-) diff --git a/module-apps/application-messages/ApplicationMessages.cpp b/module-apps/application-messages/ApplicationMessages.cpp index a27117aea74d29c46587640672695c506a3bd0a5..98a268df2df68d0a16f492b3be70dbb6b463fecc 100644 --- a/module-apps/application-messages/ApplicationMessages.cpp +++ b/module-apps/application-messages/ApplicationMessages.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "ApplicationMessages.hpp" @@ -31,6 +31,8 @@ #include #include +#include + #include #include