summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
diff options
context:
space:
mode:
authorVeronica Veremjova <vveremjova@luxoft.com>2016-12-30 16:19:18 +0200
committerVeronica Veremjova <vveremjova@luxoft.com>2016-12-30 16:19:18 +0200
commit49ecee220a3d22e08af4f84432a3a954af625c43 (patch)
treee1d9eb55ec53d2a7c70e0899b13cc5e3dfbd36d4 /src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
parente111b1e5f88baa3ece694fc2856f54ddd42068ec (diff)
downloadsdl_core-49ecee220a3d22e08af4f84432a3a954af625c43.tar.gz
Fix Activation after DEACTIVATE_HMI
According APPLINK-16172 SDL.ActivateApp should be rejected after DEACTIVATE_HMI Added error response for HMI Related to APPLINK-21868
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h')
-rw-r--r--src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h b/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
index 0f3b8bf1e4..ee500f047b 100644
--- a/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
+++ b/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
@@ -63,9 +63,28 @@ class RequestFromHMI : public CommandImpl, public event_engine::EventObserver {
const hmi_apis::FunctionID::eType function_id,
const hmi_apis::Common_Result::eType result_code);
- void FillCommonParametersOfSO(smart_objects::SmartObject* message,
- uint32_t correlation_id,
- hmi_apis::FunctionID::eType function_id);
+ /**
+ * @brief SendResponse allows to send error response to hmi
+ * @param correlation_id the correlation id for the response.
+ * @param function_id the function id for which response will be sent
+ * @param result_code the result code.
+ */
+ void SendErrorResponse(const uint32_t correlation_id,
+ const hmi_apis::FunctionID::eType function_id,
+ const hmi_apis::Common_Result::eType result_code,
+ std::string error_message);
+
+ private:
+ /**
+ * @brief Fills common parameters for SO
+ * @param Contains SO for filling
+ * @param correlation_id the correlation id for the response.
+ * @param function_id the function id for which response will be sent
+ */
+ void FillCommonParametersOfSO(
+ NsSmartDeviceLink::NsSmartObjects::SmartObjectSPtr& message,
+ uint32_t correlation_id,
+ hmi_apis::FunctionID::eType function_id);
private:
DISALLOW_COPY_AND_ASSIGN(RequestFromHMI);