From 7d5222c6ca6e483113b51eae3332d9e94ec5444a Mon Sep 17 00:00:00 2001 From: LitvinenkoIra Date: Tue, 14 Jan 2020 09:25:35 +0200 Subject: fixup! Add new update_pending status --- src/components/policy/policy_external/include/policy/status.h | 3 ++- .../policy/policy_external/include/policy/update_status_manager.h | 4 ++++ src/components/policy/policy_external/src/update_status_manager.cc | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/policy/policy_external/include/policy/status.h b/src/components/policy/policy_external/include/policy/status.h index de36f23fe1..f51888c853 100644 --- a/src/components/policy/policy_external/include/policy/status.h +++ b/src/components/policy/policy_external/include/policy/status.h @@ -163,7 +163,8 @@ class UpdateNeededStatus : public Status { }; /** - * @brief The UpdatePendingStatus class represents 'update pending' status + * @brief The UpdatePendingStatus class represents cases when SDL knows that an + * update is required and but before the snapshot is sent to the HMI */ class UpdatePendingStatus : public Status { public: diff --git a/src/components/policy/policy_external/include/policy/update_status_manager.h b/src/components/policy/policy_external/include/policy/update_status_manager.h index 4ca7c7f162..c5738b3272 100644 --- a/src/components/policy/policy_external/include/policy/update_status_manager.h +++ b/src/components/policy/policy_external/include/policy/update_status_manager.h @@ -149,6 +149,10 @@ class UpdateStatusManager { */ void ScheduleUpdate(); + /** + * @brief PendingUpdate will change state from Update_Needed + * to Update_Pending + */ void PendingUpdate(); /** diff --git a/src/components/policy/policy_external/src/update_status_manager.cc b/src/components/policy/policy_external/src/update_status_manager.cc index 4d5967aca6..bf20f9dd55 100644 --- a/src/components/policy/policy_external/src/update_status_manager.cc +++ b/src/components/policy/policy_external/src/update_status_manager.cc @@ -175,6 +175,7 @@ void UpdateStatusManager::PendingUpdate() { } void UpdateStatusManager::ScheduleManualUpdate() { + LOG4CXX_AUTO_TRACE(logger_); ProcessEvent(kScheduleManualUpdate); } -- cgit v1.2.1