summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/help_prompt_manager.h
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2018-07-06 19:55:38 +0300
committerAKalinich-Luxoft <AKalinich@luxoft.com>2018-07-11 20:50:08 +0300
commit1c57695b83f1d680a8ea23513378e6c6248210da (patch)
tree94f9326fef177b03c6752781b45e50fe21ddf0af /src/components/application_manager/include/application_manager/help_prompt_manager.h
parent6371b7b64145971fbf31c5f0e20de83f2d5d73bb (diff)
downloadsdl_core-1c57695b83f1d680a8ea23513378e6c6248210da.tar.gz
Fix failed ATF tests after timer removing
Fixed triggering SetGlobalProperties after resumption and during resumption Fixed commands limit after resumption Fixed requests counter Removed redundant logic
Diffstat (limited to 'src/components/application_manager/include/application_manager/help_prompt_manager.h')
-rw-r--r--src/components/application_manager/include/application_manager/help_prompt_manager.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/components/application_manager/include/application_manager/help_prompt_manager.h b/src/components/application_manager/include/application_manager/help_prompt_manager.h
index d5e712c1e7..a0c34e77d7 100644
--- a/src/components/application_manager/include/application_manager/help_prompt_manager.h
+++ b/src/components/application_manager/include/application_manager/help_prompt_manager.h
@@ -46,17 +46,29 @@ class HelpPromptManager {
* @brief Class destructor
*/
virtual ~HelpPromptManager() {}
+
/**
* @brief Adds command to constructed values, and sends SetGlobalProperties if
* required
+ * @param cmd_id command unique ID
+ * @param command smart object with commands to add
+ * @param is_resumption flag for identifying if command was added during data
+ * resumption process
*/
virtual void OnVrCommandAdded(const uint32_t cmd_id,
- const smart_objects::SmartObject& command) = 0;
+ const smart_objects::SmartObject& command,
+ const bool is_resumption) = 0;
+
/**
* @brief Removes command from constructed values, and send
* SetGlobalProperties if required
+ * @param cmd_id command unique ID
+ * @param is_resumption flag for identifying if command was added during data
+ * resumption process
*/
- virtual void OnVrCommandDeleted(const uint32_t cmd_id) = 0;
+ virtual void OnVrCommandDeleted(const uint32_t cmd_id,
+ const bool is_resumption) = 0;
+
/**
* @brief Stop constructing vrHelp and/or helpPrompt if they are present in
* message
@@ -66,16 +78,17 @@ class HelpPromptManager {
*/
virtual void OnSetGlobalPropertiesReceived(
const smart_objects::SmartObject& msg, const bool is_response) = 0;
+
/**
- * @brief Starts mechanism for handling "help" requests
- * @param is_restore determines the need to restore commands
- * after resuming
+ * @brief Requests sending type behavior
*/
- virtual void OnAppActivated(const bool is_restore) = 0;
+ enum class SendingType { kNoneSend, kSendHelpPrompt, kSendVRHelp, kSendBoth };
+
/**
- * @brief Stop mechanism for handling "help" requests
+ * @brief Get current sending type
+ * @return current sending type
*/
- virtual void OnAppUnregistered() = 0;
+ virtual SendingType GetSendingType() const = 0;
};
} // namespace application_manager