diff options
author | RomanReznichenkoLuxoft <85177915+RomanReznichenkoLuxoft@users.noreply.github.com> | 2021-11-10 20:04:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 13:04:30 -0500 |
commit | 1e88e6f390bbee10b1b19bea873200ad91558c8a (patch) | |
tree | 309f7e0533f492aff5b68c4623e49f47f267a7fe /src | |
parent | dbb573689e674ce91da47c5dd8a916838148dde9 (diff) | |
download | sdl_core-1e88e6f390bbee10b1b19bea873200ad91558c8a.tar.gz |
added an ontimeout method to handle a timeout request (#3803)
Diffstat (limited to 'src')
2 files changed, 10 insertions, 0 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/hmi/rc_set_global_properties_request.h b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/hmi/rc_set_global_properties_request.h index 64b11c3d7b..680d642a98 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/hmi/rc_set_global_properties_request.h +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/hmi/rc_set_global_properties_request.h @@ -58,6 +58,8 @@ class RCSetGlobalPropertiesRequest : public app_mngr::commands::RequestToHMI { */ void Run() OVERRIDE; + void OnTimeOut() OVERRIDE; + ~RCSetGlobalPropertiesRequest(); }; } // namespace commands diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_set_global_properties_request.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_set_global_properties_request.cc index f0ff1afbb3..0a4b72ff64 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_set_global_properties_request.cc +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_set_global_properties_request.cc @@ -31,6 +31,7 @@ */ #include "rc_rpc_plugin/commands/hmi/rc_set_global_properties_request.h" +#include "application_manager/resumption/resume_ctrl.h" namespace rc_rpc_plugin { namespace app_mngr = application_manager; @@ -53,6 +54,13 @@ void RCSetGlobalPropertiesRequest::Run() { SendRequest(); } +void RCSetGlobalPropertiesRequest::OnTimeOut() { + auto& resume_ctrl = application_manager_.resume_controller(); + resume_ctrl.HandleOnTimeOut( + correlation_id(), + static_cast<hmi_apis::FunctionID::eType>(function_id())); +} + RCSetGlobalPropertiesRequest::~RCSetGlobalPropertiesRequest() {} } // namespace commands |