summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLitvinenkoIra <ilytvynenko@luxoft.com>2020-01-14 09:25:35 +0200
committerLitvinenkoIra <ilytvynenko@luxoft.com>2020-01-14 09:25:35 +0200
commit7d5222c6ca6e483113b51eae3332d9e94ec5444a (patch)
tree4b53f2e99880b8f2facd06845ea20eae0c60dab4
parent0a56097ca49e2baa78110ed2247da5e28a720435 (diff)
downloadsdl_core-fix/BC.PolicyUpdate_twice.tar.gz
fixup! Add new update_pending statusfix/BC.PolicyUpdate_twice
-rw-r--r--src/components/policy/policy_external/include/policy/status.h3
-rw-r--r--src/components/policy/policy_external/include/policy/update_status_manager.h4
-rw-r--r--src/components/policy/policy_external/src/update_status_manager.cc1
3 files changed, 7 insertions, 1 deletions
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);
}