diff options
author | Conlain Kelly <conlain.k@gmail.com> | 2018-07-31 10:13:17 -0400 |
---|---|---|
committer | Conlain Kelly <conlain.k@gmail.com> | 2018-07-31 10:13:17 -0400 |
commit | 8bb20b6fcc0cbb1bb777331359c60d4f728674e1 (patch) | |
tree | 665ce8dbf76bde2e7b1900c47b0a1088148cfba2 /src/components/application_manager/include/application_manager | |
parent | dfcf5aecebd93a8b8e99d1f4e631f6a7eb47c74d (diff) | |
download | sdl_core-8bb20b6fcc0cbb1bb777331359c60d4f728674e1.tar.gz |
more cleanup, add mock implementations
Diffstat (limited to 'src/components/application_manager/include/application_manager')
-rw-r--r-- | src/components/application_manager/include/application_manager/message_helper.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/components/application_manager/include/application_manager/message_helper.h b/src/components/application_manager/include/application_manager/message_helper.h index f370cc6966..bfdadd40c9 100644 --- a/src/components/application_manager/include/application_manager/message_helper.h +++ b/src/components/application_manager/include/application_manager/message_helper.h @@ -635,6 +635,25 @@ class MessageHelper { smart_objects::SmartObject& image, ApplicationConstSharedPtr app, ApplicationManager& app_mngr); + + /** + * @brief Stores whether a choice set has correct VRCommands + * MIXED means some choices have VRCommands and others don't + * ALL means all do, NONE means none do + */ + enum ChoiceSetVRCommandsStatus { + MIXED, ALL, NONE + }; + + + /** + * @brief Check whether each choice in the set has the vrCommands parameter + * vrCommands is an all-or-none deal + * @param choice set to check + * @return a ChoiceSetVRCommandsStatus representing the state of the choice set + */ + static ChoiceSetVRCommandsStatus CheckChoiceSetVRCommands( + const smart_objects::SmartObject& choice_set); /* * @brief Finds "Image" structure in request and verify image file presence @@ -855,19 +874,6 @@ class MessageHelper { */ static smart_objects::SmartObjectSPtr CreateMessageForHMI( hmi_apis::messageType::eType message_type, const uint32_t correlation_id); - - enum ChoiceSetVRCommandsStatus { - MIXED, ALL, NONE - }; - - /** - * @brief Check whether each choice in the set has the vrCommands parameter - * vrCommands is an all-or-none deal - * @param choice set to check - * @return -1 for mixed, 0 if all choice include vrCommands, and 1 if none do - */ - static ChoiceSetVRCommandsStatus CheckChoiceSetVRCommands( - const smart_objects::SmartObject& choice_set); private: /** |