Skip to content

Commit

Permalink
added an ontimeout method to handle a timeout request (#3803)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanReznichenkoLuxoft committed Nov 10, 2021
1 parent dbb5736 commit 1e88e6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class RCSetGlobalPropertiesRequest : public app_mngr::commands::RequestToHMI {
*/
void Run() OVERRIDE;

void OnTimeOut() OVERRIDE;

~RCSetGlobalPropertiesRequest();
};
} // namespace commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 1e88e6f

Please sign in to comment.