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/set_icon_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/set_icon_request.cc')
-rw-r--r-- | src/components/application_manager/src/commands/mobile/set_icon_request.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/application_manager/src/commands/mobile/set_icon_request.cc b/src/components/application_manager/src/commands/mobile/set_icon_request.cc index 85f34aead9..037de54456 100644 --- a/src/components/application_manager/src/commands/mobile/set_icon_request.cc +++ b/src/components/application_manager/src/commands/mobile/set_icon_request.cc @@ -95,7 +95,7 @@ void SetIconRequest::Run() { // for further use in on_event function (*message_)[strings::msg_params][strings::sync_file_name] = msg_params[strings::sync_file_name]; - + StartAwaitForInterface(HmiInterfaces::HMI_INTERFACE_UI); SendHMIRequest(hmi_apis::FunctionID::UI_SetAppIcon, &msg_params, true); } @@ -105,6 +105,7 @@ void SetIconRequest::on_event(const event_engine::Event& event) { switch (event.id()) { case hmi_apis::FunctionID::UI_SetAppIcon: { + EndAwaitForInterface(HmiInterfaces::HMI_INTERFACE_UI); mobile_apis::Result::eType result_code = static_cast<mobile_apis::Result::eType>( message[strings::params][hmi_response::code].asInt()); |