diff options
author | JackLivio <jack@livio.io> | 2020-06-30 15:59:20 -0400 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2020-06-30 15:59:20 -0400 |
commit | 0bb8836e784898e587ad3758bc29ee7ae1b38f7b (patch) | |
tree | 2b1c2bab807346bc34c11288a0988345f0d04c4c /src | |
parent | 02100c8829dbc3ed8754d63ece129bee671e38e9 (diff) | |
download | sdl_core-0bb8836e784898e587ad3758bc29ee7ae1b38f7b.tar.gz |
Add missing rpc implementation pieces
Diffstat (limited to 'src')
3 files changed, 18 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..22f9b6be6c 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 @@ -244,6 +244,8 @@ #include "sdl_rpc_plugin/commands/hmi/ui_set_display_layout_response.h" #include "sdl_rpc_plugin/commands/hmi/ui_show_app_menu_request.h" #include "sdl_rpc_plugin/commands/hmi/ui_show_app_menu_response.h" +#include "sdl_rpc_plugin/commands/hmi/on_ui_update_file_notification.h" +#include "sdl_rpc_plugin/commands/hmi/on_ui_update_sub_menu_notification.h" #include "sdl_rpc_plugin/commands/hmi/bc_get_file_path_request.h" #include "sdl_rpc_plugin/commands/hmi/bc_get_file_path_response.h" @@ -923,6 +925,12 @@ CommandCreator& HMICommandFactory::get_creator_factory( case hmi_apis::FunctionID::BasicCommunication_OnAppPropertiesChange: { return factory.GetCreator<commands::OnAppPropertiesChangeNotification>(); } + case hmi_apis::FunctionID::BasicCommunication_OnUpdateFile: { + return factory.GetCreator<commands::OnUIUpdateFileNotification>(); + } + case hmi_apis::FunctionID::BasicCommunication_OnUpdateSubMenu: { + return factory.GetCreator<commands::OnUIUpdateSubMenuNotification>(); + } default: { return factory.GetCreator<InvalidCommand>(); } } } diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/mobile_command_factory.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/mobile_command_factory.cc index c6f4b64636..1503aa6593 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/mobile_command_factory.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/mobile_command_factory.cc @@ -142,6 +142,8 @@ #include "sdl_rpc_plugin/commands/mobile/unsubscribe_way_points_response.h" #include "sdl_rpc_plugin/commands/mobile/update_turn_list_request.h" #include "sdl_rpc_plugin/commands/mobile/update_turn_list_response.h" +#include "sdl_rpc_plugin/commands/mobile/on_update_file_notification.h" +#include "sdl_rpc_plugin/commands/mobile/on_update_sub_menu_notification.h" CREATE_LOGGERPTR_GLOBAL(logger_, "ApplicationManager") namespace sdl_rpc_plugin { @@ -458,6 +460,12 @@ CommandCreator& MobileCommandFactory::get_notification_creator( case mobile_apis::FunctionID::OnWayPointChangeID: { return factory.GetCreator<commands::OnWayPointChangeNotification>(); } + case mobile_apis::FunctionID::OnUpdateFileID: { + return factory.GetCreator<commands::OnUpdateFileNotification>(); + } + case mobile_apis::FunctionID::OnUpdateSubMenuID: { + return factory.GetCreator<commands::OnUpdateSubMenuNotification>(); + } default: {} } return factory.GetCreator<InvalidCommand>(); diff --git a/src/components/hmi_message_handler/src/messagebroker_adapter.cc b/src/components/hmi_message_handler/src/messagebroker_adapter.cc index b5e2defd58..13e6dfeca1 100644 --- a/src/components/hmi_message_handler/src/messagebroker_adapter.cc +++ b/src/components/hmi_message_handler/src/messagebroker_adapter.cc @@ -143,6 +143,8 @@ void MessageBrokerAdapter::SubscribeTo() { MessageBrokerController::subscribeTo("RC.OnRemoteControlSettings"); MessageBrokerController::subscribeTo( "BasicCommunication.OnSystemCapabilityUpdated"); + MessageBrokerController::subscribeTo("UI.OnUpdateFile"); + MessageBrokerController::subscribeTo("UI.OnUpdateSubMenu"); LOG4CXX_INFO(logger_, "Subscribed to notifications."); } |