diff options
author | Herasym Oleh <oolleehh@gmail.com> | 2016-02-02 10:01:46 +0200 |
---|---|---|
committer | Herasym Oleh <oolleehh@gmail.com> | 2016-02-02 10:01:46 +0200 |
commit | 26fd5aabbb18fd7977a9cbf7f1c8aba69f55bfee (patch) | |
tree | 5033bf2122aaa85b117321744135a0399df7bb0f | |
parent | fb84eb808920e35833b9c3af7a9655b5b579f618 (diff) | |
download | smartdevicelink-26fd5aabbb18fd7977a9cbf7f1c8aba69f55bfee.tar.gz |
Change HasHMIResponsesToWait method to const
Related:
APPLINK-17490
2 files changed, 12 insertions, 13 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/mobile/perform_interaction_request.h b/src/components/application_manager/include/application_manager/commands/mobile/perform_interaction_request.h index ee3cd64e7..ee8527006 100644 --- a/src/components/application_manager/include/application_manager/commands/mobile/perform_interaction_request.h +++ b/src/components/application_manager/include/application_manager/commands/mobile/perform_interaction_request.h @@ -211,7 +211,7 @@ class PerformInteractionRequest : public CommandRequestImpl { * @return If there is request without response method returns TRUE * otherwise returns FALSE */ - bool HasHMIResponsesToWait(); + const bool HasHMIResponsesToWait() const; /** * @brief Check VR response result code, in case GENERIC_ERROR, REJECTED, diff --git a/src/components/application_manager/src/commands/mobile/perform_interaction_request.cc b/src/components/application_manager/src/commands/mobile/perform_interaction_request.cc index 863870095..33dc1b85d 100644 --- a/src/components/application_manager/src/commands/mobile/perform_interaction_request.cc +++ b/src/components/application_manager/src/commands/mobile/perform_interaction_request.cc @@ -53,17 +53,16 @@ namespace custom_str = utils::custom_string; uint32_t PerformInteractionRequest::pi_requests_count_ = 0; PerformInteractionRequest::PerformInteractionRequest( - const MessageSharedPtr& message) -: CommandRequestImpl(message), - interaction_mode_(mobile_apis::InteractionMode::INVALID_ENUM), - ui_response_recived_(false), - vr_response_recived_(false), - ui_result_(false), - vr_result_(false), - app_pi_was_active_before_(false), - vr_resultCode_(mobile_apis::Result::INVALID_ENUM), - ui_resultCode_(mobile_apis::Result::INVALID_ENUM) { - + const MessageSharedPtr& message) + : CommandRequestImpl(message), + interaction_mode_(mobile_apis::InteractionMode::INVALID_ENUM), + ui_response_recived_(false), + vr_response_recived_(false), + ui_result_(false), + vr_result_(false), + app_pi_was_active_before_(false), + vr_resultCode_(mobile_apis::Result::INVALID_ENUM), + ui_resultCode_(mobile_apis::Result::INVALID_ENUM) { subscribe_on_event(hmi_apis::FunctionID::UI_OnResetTimeout); subscribe_on_event(hmi_apis::FunctionID::VR_OnCommand); subscribe_on_event(hmi_apis::FunctionID::Buttons_OnButtonPress); @@ -933,7 +932,7 @@ bool PerformInteractionRequest::CheckChoiceIDFromRequest( return true; } -bool PerformInteractionRequest::HasHMIResponsesToWait() { +const bool PerformInteractionRequest::HasHMIResponsesToWait() const { LOG4CXX_AUTO_TRACE(logger_); return !ui_response_recived_ || !vr_response_recived_; } |