diff options
author | Alexander Kutsan <akutsan@luxoft.com> | 2017-11-13 14:07:10 +0200 |
---|---|---|
committer | Alexander Kutsan <akutsan@luxoft.com> | 2017-11-13 14:54:43 +0200 |
commit | 02cdccc4e3d90b48c0966c3f7d6f644dbb0e1ea9 (patch) | |
tree | 643ae6d0676a8b01368ec01034efe1d12e52a708 /src/components/application_manager/src/commands/mobile/read_did_request.cc | |
parent | 10b632f27b3e04ed1e75363d0674c44279f7ac1f (diff) | |
download | sdl_core-02cdccc4e3d90b48c0966c3f7d6f644dbb0e1ea9.tar.gz |
Common functionality awaiting of certain HMI requests
Add private methods in CommandImpl:
- StartAwaitForInterface
- EndAwaitForInterface
- IsInterfaceAwaited
Add usage of this methods across of commands that splited to multiple HMI interfaces
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/read_did_request.cc')
-rw-r--r-- | src/components/application_manager/src/commands/mobile/read_did_request.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/application_manager/src/commands/mobile/read_did_request.cc b/src/components/application_manager/src/commands/mobile/read_did_request.cc index 0bf747bde3..c51f545e7e 100644 --- a/src/components/application_manager/src/commands/mobile/read_did_request.cc +++ b/src/components/application_manager/src/commands/mobile/read_did_request.cc @@ -87,6 +87,7 @@ void ReadDIDRequest::Run() { (*message_)[strings::msg_params][strings::ecu_name]; msg_params[strings::did_location] = (*message_)[strings::msg_params][strings::did_location]; + StartAwaitForInterface(HmiInterfaces::HMI_INTERFACE_VehicleInfo); SendHMIRequest(hmi_apis::FunctionID::VehicleInfo_ReadDID, &msg_params, true); } @@ -97,6 +98,7 @@ void ReadDIDRequest::on_event(const event_engine::Event& event) { switch (event.id()) { case hmi_apis::FunctionID::VehicleInfo_ReadDID: { + EndAwaitForInterface(HmiInterfaces::HMI_INTERFACE_VehicleInfo); hmi_apis::Common_Result::eType result_code = static_cast<hmi_apis::Common_Result::eType>( message[strings::params][hmi_response::code].asInt()); |