diff options
Diffstat (limited to 'src/components/application_manager/src/hmi_command_factory.cc')
-rw-r--r-- | src/components/application_manager/src/hmi_command_factory.cc | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/components/application_manager/src/hmi_command_factory.cc b/src/components/application_manager/src/hmi_command_factory.cc index c9d241a9a..f8bf47bb7 100644 --- a/src/components/application_manager/src/hmi_command_factory.cc +++ b/src/components/application_manager/src/hmi_command_factory.cc @@ -63,6 +63,8 @@ #include "application_manager/commands/hmi/on_app_permission_changed_notification.h" #include "application_manager/commands/hmi/on_app_permission_consent_notification.h" #include "application_manager/commands/hmi/on_app_activated_notification.h" +#include "application_manager/commands/hmi/on_audio_data_streaming_notification.h" +#include "application_manager/commands/hmi/on_video_data_streaming_notification.h" #include "application_manager/commands/hmi/on_sdl_consent_needed_notification.h" #include "application_manager/commands/hmi/on_exit_all_applications_notification.h" #include "application_manager/commands/hmi/on_exit_application_notification.h" @@ -70,6 +72,7 @@ #include "application_manager/commands/hmi/on_resume_audio_source_notification.h" #include "application_manager/commands/hmi/on_ignition_cycle_over_notification.h" #include "application_manager/commands/hmi/on_system_info_changed_notification.h" +#include "application_manager/commands/hmi/on_emergency_event_notification.h" #include "application_manager/commands/hmi/get_system_info_request.h" #include "application_manager/commands/hmi/get_system_info_response.h" #include "application_manager/commands/hmi/close_popup_request.h" @@ -106,8 +109,8 @@ #include "application_manager/commands/hmi/ui_set_global_properties_response.h" #include "application_manager/commands/hmi/ui_scrollable_message_request.h" #include "application_manager/commands/hmi/ui_scrollable_message_response.h" -#include "application_manager/commands/hmi/ui_set_icon_request.h" -#include "application_manager/commands/hmi/ui_set_icon_response.h" +#include "application_manager/commands/hmi/ui_set_app_icon_request.h" +#include "application_manager/commands/hmi/ui_set_app_icon_response.h" #include "application_manager/commands/hmi/ui_perform_audio_pass_thru_response.h" #include "application_manager/commands/hmi/ui_perform_audio_pass_thru_request.h" #include "application_manager/commands/hmi/ui_end_audio_pass_thru_response.h" @@ -227,6 +230,7 @@ #include "application_manager/commands/hmi/on_navi_tbt_client_state_notification.h" #include "application_manager/commands/hmi/on_button_event_notification.h" #include "application_manager/commands/hmi/on_button_press_notification.h" +#include "application_manager/commands/hmi/on_button_subscription_notification.h" #include "application_manager/commands/hmi/on_vi_vehicle_data_notification.h" #include "application_manager/commands/hmi/on_ui_keyboard_input_notification.h" #include "application_manager/commands/hmi/on_ui_touch_event_notification.h" @@ -266,7 +270,7 @@ namespace application_manager { CREATE_LOGGERPTR_GLOBAL(logger_, "ApplicationManager") CommandSharedPtr HMICommandFactory::CreateCommand( - const MessageSharedPtr& message) { + const commands::MessageSharedPtr& message) { const int function_id = (*message)[strings::params][strings::function_id] .asInt(); LOG4CXX_INFO(logger_, @@ -455,9 +459,9 @@ CommandSharedPtr HMICommandFactory::CreateCommand( } case hmi_apis::FunctionID::UI_SetAppIcon: { if (is_response) { - command.reset(new commands::UISetIconResponse(message)); + command.reset(new commands::UISetAppIconResponse(message)); } else { - command.reset(new commands::UISetIconRequest(message)); + command.reset(new commands::UISetAppIconRequest(message)); } break; } @@ -1085,6 +1089,10 @@ CommandSharedPtr HMICommandFactory::CreateCommand( command.reset(new commands::OnSystemInfoChangedNotification(message)); break; } + case hmi_apis::FunctionID::BasicCommunication_OnEmergencyEvent: { + command.reset(new commands::OnEmergencyEventNotification(message)); + break; + } case hmi_apis::FunctionID::BasicCommunication_PlayTone: { command.reset(new commands::OnPlayToneNotification(message)); break; @@ -1170,6 +1178,10 @@ CommandSharedPtr HMICommandFactory::CreateCommand( command.reset(new commands::hmi::OnButtonPressNotification(message)); break; } + case hmi_apis::FunctionID::Buttons_OnButtonSubscription: { + command.reset(new commands::hmi::OnButtonSubscriptionNotification(message)); + break; + } #ifdef HMI_DBUS_API case hmi_apis::FunctionID::VehicleInfo_SubscribeGps: { if (is_response) @@ -1952,6 +1964,14 @@ CommandSharedPtr HMICommandFactory::CreateCommand( } break; } + case hmi_apis::FunctionID::Navigation_OnAudioDataStreaming: { + command.reset(new commands::OnAudioDataStreamingNotification(message)); + break; + } + case hmi_apis::FunctionID::Navigation_OnVideoDataStreaming: { + command.reset(new commands::OnVideoDataStreamingNotification(message)); + break; + } case hmi_apis::FunctionID::VR_PerformInteraction: { if (is_response) { command.reset(new commands::VRPerformInteractionResponse(message)); |