diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2020-08-17 15:54:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 15:54:00 -0400 |
commit | 4c9f873f1b5f77b8a4076602c2f544809e97a24a (patch) | |
tree | 2e212f9c2d0924d84c87ebb8e2c65b832184a2dc /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc | |
parent | d2202209e499ab2682b1da554d4373b2893b605b (diff) | |
download | sdl_core-4c9f873f1b5f77b8a4076602c2f544809e97a24a.tar.gz |
Add SubtleAlert RPC (#3459)
* Add SubtleAlert RPC to project
* Add OnSubtleAlertPressed implementation
* Add `subtle_notifications_per_minute_by_priority` field to policies
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc')
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc index b89a8dbd68..0289a92290 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc @@ -135,6 +135,8 @@ #include "sdl_rpc_plugin/commands/hmi/ui_show_response.h" #include "sdl_rpc_plugin/commands/hmi/ui_slider_request.h" #include "sdl_rpc_plugin/commands/hmi/ui_slider_response.h" +#include "sdl_rpc_plugin/commands/hmi/ui_subtle_alert_request.h" +#include "sdl_rpc_plugin/commands/hmi/ui_subtle_alert_response.h" #include "sdl_rpc_plugin/commands/hmi/update_app_list_request.h" #include "sdl_rpc_plugin/commands/hmi/update_app_list_response.h" #include "sdl_rpc_plugin/commands/hmi/update_device_list_request.h" @@ -229,6 +231,7 @@ #include "sdl_rpc_plugin/commands/hmi/on_ui_keyboard_input_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_ui_language_change_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_ui_reset_timeout_notification.h" +#include "sdl_rpc_plugin/commands/hmi/on_ui_subtle_alert_pressed_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_ui_touch_event_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vr_command_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vr_language_change_notification.h" @@ -511,6 +514,11 @@ CommandCreator& HMICommandFactory::get_creator_factory( ? factory.GetCreator<commands::UIAlertRequest>() : factory.GetCreator<commands::UIAlertResponse>(); } + case hmi_apis::FunctionID::UI_SubtleAlert: { + return hmi_apis::messageType::request == message_type + ? factory.GetCreator<commands::UISubtleAlertRequest>() + : factory.GetCreator<commands::UISubtleAlertResponse>(); + } case hmi_apis::FunctionID::VR_IsReady: { return hmi_apis::messageType::request == message_type ? factory.GetCreator<commands::VRIsReadyRequest>() @@ -923,6 +931,9 @@ CommandCreator& HMICommandFactory::get_creator_factory( case hmi_apis::FunctionID::BasicCommunication_OnAppPropertiesChange: { return factory.GetCreator<commands::OnAppPropertiesChangeNotification>(); } + case hmi_apis::FunctionID::UI_OnSubtleAlertPressed: { + return factory.GetCreator<commands::OnUISubtleAlertPressedNotification>(); + } default: { return factory.GetCreator<InvalidCommand>(); } } } |