summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands/hmi/request_from_hmi.h
diff options
context:
space:
mode:
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.h21
1 files changed, 18 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 39ebd9581..31dabf761 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
@@ -1,4 +1,4 @@
- /**
+ /*
Copyright (c) 2014, Ford Motor Company
All rights reserved.
@@ -48,14 +48,29 @@
namespace NsSmart = NsSmartDeviceLink::NsSmartObjects;
- class RequestFromHMI : public CommandImpl {
+ class RequestFromHMI : public CommandImpl, public event_engine::EventObserver {
public:
explicit RequestFromHMI(const MessageSharedPtr& message);
virtual ~RequestFromHMI();
virtual bool Init();
virtual bool CleanUp();
virtual void Run();
-
+ virtual void on_event(const event_engine::Event& event);
+ /**
+ * @brief SendResponse allows to send response to hmi
+ *
+ * @param success the response result.
+ *
+ * @param correlation_id the correlation id for the rfesponse.
+ *
+ * @param function_id the function id for which response will be sent
+ *
+ * @param result_code the result code.
+ */
+ void SendResponse(bool success,
+ uint32_t correlation_id,
+ hmi_apis::FunctionID::eType function_id,
+ hmi_apis::Common_Result::eType result_code);
private:
DISALLOW_COPY_AND_ASSIGN(RequestFromHMI);
};