diff options
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc')
-rw-r--r-- | src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc b/src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc index 571c6f381c..10ea1ea303 100644 --- a/src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_app_unregistered_notification.cc @@ -31,7 +31,7 @@ */ #include "application_manager/commands/hmi/on_app_unregistered_notification.h" -#include "application_manager/application_manager_impl.h" + #include "application_manager/event_engine/event.h" namespace application_manager { @@ -39,19 +39,19 @@ namespace application_manager { namespace commands { OnAppUnregisteredNotification::OnAppUnregisteredNotification( - const MessageSharedPtr& message) : NotificationToHMI(message) { -} + const MessageSharedPtr& message, ApplicationManager& application_manager) + : NotificationToHMI(message, application_manager) {} -OnAppUnregisteredNotification::~OnAppUnregisteredNotification() { -} +OnAppUnregisteredNotification::~OnAppUnregisteredNotification() {} void OnAppUnregisteredNotification::Run() { LOG4CXX_AUTO_TRACE(logger_); - //sending event for delete VRCommand on PerformInteraction - event_engine::Event event(hmi_apis::FunctionID::BasicCommunication_OnAppUnregistered); + // sending event for delete VRCommand on PerformInteraction + event_engine::Event event( + hmi_apis::FunctionID::BasicCommunication_OnAppUnregistered); event.set_smart_object(*message_); - event.raise(); + event.raise(application_manager_.event_dispatcher()); SendNotification(); } @@ -59,4 +59,3 @@ void OnAppUnregisteredNotification::Run() { } // namespace commands } // namespace application_manager - |