summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src
diff options
context:
space:
mode:
authorOleksandr Lohvinenko (GitHub) <OLohvinenko@luxoft.com>2018-05-23 17:06:17 +0300
committerIra Lytvynenko (GitHub) <ILytvynenko@luxoft.com>2018-06-26 12:01:47 +0300
commit17f51a4f8990c9a457f503327baaca46d31fd87b (patch)
tree15414c65b75082b43716b7fd99212c5932b843fb /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src
parent7f30c90f62fdd48ffdc3e409243661e56bd57f19 (diff)
downloadsdl_core-17f51a4f8990c9a457f503327baaca46d31fd87b.tar.gz
Removed usages of moved modules from rpc plugin, minor code improvement.
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc59
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/mobile_command_factory.cc47
2 files changed, 0 insertions, 106 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 0254123b9b..3545d3243d 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
@@ -148,8 +148,6 @@
#include "sdl_rpc_plugin/commands/hmi/tts_get_capabilities_response.h"
#include "sdl_rpc_plugin/commands/hmi/vr_perform_interaction_request.h"
#include "sdl_rpc_plugin/commands/hmi/vr_perform_interaction_response.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_read_did_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_read_did_response.h"
#include "sdl_rpc_plugin/commands/hmi/sdl_activate_app_request.h"
#include "sdl_rpc_plugin/commands/hmi/sdl_activate_app_response.h"
#include "sdl_rpc_plugin/commands/hmi/on_app_permission_changed_notification.h"
@@ -188,20 +186,8 @@
#include "sdl_rpc_plugin/commands/hmi/on_vi_acc_pedal_position_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_vi_steering_wheel_angle_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_vi_my_key_notification.h"
-#else
-#include "sdl_rpc_plugin/commands/hmi/vi_get_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_get_vehicle_data_response.h"
-#include "sdl_rpc_plugin/commands/hmi/on_vi_vehicle_data_notification.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_subscribe_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_subscribe_vehicle_data_response.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_unsubscribe_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_unsubscribe_vehicle_data_response.h"
#endif // #ifdef HMI_DBUS_API
-#include "sdl_rpc_plugin/commands/hmi/vi_get_dtcs_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_get_dtcs_response.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_diagnostic_message_request.h"
-#include "sdl_rpc_plugin/commands/hmi/vi_diagnostic_message_response.h"
#include "sdl_rpc_plugin/commands/hmi/vi_get_vehicle_type_request.h"
#include "sdl_rpc_plugin/commands/hmi/vi_get_vehicle_type_response.h"
#include "sdl_rpc_plugin/commands/hmi/navi_is_ready_request.h"
@@ -241,7 +227,6 @@
#include "sdl_rpc_plugin/commands/hmi/on_button_event_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_button_press_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_button_subscription_notification.h"
-#include "sdl_rpc_plugin/commands/hmi/on_vi_vehicle_data_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_ui_keyboard_input_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_ui_touch_event_notification.h"
#include "sdl_rpc_plugin/commands/hmi/on_ui_reset_timeout_notification.h"
@@ -621,11 +606,6 @@ CommandCreator& HMICommandFactory::get_creator_factory(
? factory.GetCreator<commands::UIIsReadyRequest>()
: factory.GetCreator<commands::UIIsReadyResponse>();
}
- case hmi_apis::FunctionID::VehicleInfo_ReadDID: {
- return hmi_apis::messageType::request == message_type
- ? factory.GetCreator<commands::VIReadDIDRequest>()
- : factory.GetCreator<commands::VIReadDIDResponse>();
- }
#ifdef HMI_DBUS_API
case hmi_apis::FunctionID::VehicleInfo_GetGpsData: {
return hmi_apis::messageType::request == message_type
@@ -847,23 +827,7 @@ CommandCreator& HMICommandFactory::get_creator_factory(
.GetCreator<commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetMyKey> >();
}
-#else
- case hmi_apis::FunctionID::VehicleInfo_GetVehicleData: {
- return hmi_apis::messageType::request == message_type
- ? factory.GetCreator<commands::VIGetVehicleDataRequest>()
- : factory.GetCreator<commands::VIGetVehicleDataResponse>();
- }
#endif // #ifdef HMI_DBUS_API
- case hmi_apis::FunctionID::VehicleInfo_GetDTCs: {
- return hmi_apis::messageType::request == message_type
- ? factory.GetCreator<commands::VIGetDTCsRequest>()
- : factory.GetCreator<commands::VIGetDTCsResponse>();
- }
- case hmi_apis::FunctionID::VehicleInfo_DiagnosticMessage: {
- return hmi_apis::messageType::request == message_type
- ? factory.GetCreator<commands::VIDiagnosticMessageRequest>()
- : factory.GetCreator<commands::VIDiagnosticMessageResponse>();
- }
case hmi_apis::FunctionID::VehicleInfo_GetVehicleType: {
return hmi_apis::messageType::request == message_type
? factory.GetCreator<commands::VIGetVehicleTypeRequest>()
@@ -1267,15 +1231,6 @@ CommandCreator& HMICommandFactory::get_creator_factory(
hmi_apis::FunctionID::
VehicleInfo_SubscribeMyKey> >();
}
-#else
- case hmi_apis::FunctionID::VehicleInfo_SubscribeVehicleData: {
- return hmi_apis::messageType::request == message_type
- ? factory.GetCreator<commands::VISubscribeVehicleDataRequest>()
- : factory
- .GetCreator<commands::VISubscribeVehicleDataResponse>();
- }
-#endif // #ifdef HMI_DBUS_API
-#ifdef HMI_DBUS_API
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeGps: {
return hmi_apis::messageType::request == message_type
? factory.GetCreator <
@@ -1547,16 +1502,6 @@ CommandCreator& HMICommandFactory::get_creator_factory(
hmi_apis::FunctionID::
VehicleInfo_UnsubscribeMyKey> >();
}
-#else
- case hmi_apis::FunctionID::VehicleInfo_UnsubscribeVehicleData: {
- return hmi_apis::messageType::request == message_type
- ? factory
- .GetCreator<commands::VIUnsubscribeVehicleDataRequest>()
- : factory.GetCreator<
- commands::VIUnsubscribeVehicleDataResponse>();
- }
-#endif // #ifdef HMI_DBUS_API
-#ifdef HMI_DBUS_API
case hmi_apis::FunctionID::VehicleInfo_OnGpsData: {
return factory.GetCreator<commands::OnVIGpsDataNotification>();
}
@@ -1622,10 +1567,6 @@ CommandCreator& HMICommandFactory::get_creator_factory(
case hmi_apis::FunctionID::VehicleInfo_OnMyKey: {
return factory.GetCreator<commands::OnVIMyKeyNotification>();
}
-#else
- case hmi_apis::FunctionID::VehicleInfo_OnVehicleData: {
- return factory.GetCreator<commands::OnVIVehicleDataNotification>();
- }
#endif // #ifdef HMI_DBUS_API
case hmi_apis::FunctionID::Navigation_OnTBTClientState: {
return factory.GetCreator<commands::OnNaviTBTClientStateNotification>();
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 3ddfcf8710..d27161ff77 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
@@ -54,12 +54,8 @@
#include "sdl_rpc_plugin/commands/mobile/end_audio_pass_thru_request.h"
#include "sdl_rpc_plugin/commands/mobile/end_audio_pass_thru_response.h"
#include "sdl_rpc_plugin/commands/mobile/generic_response.h"
-#include "sdl_rpc_plugin/commands/mobile/get_dtcs_request.h"
-#include "sdl_rpc_plugin/commands/mobile/get_dtcs_response.h"
#include "sdl_rpc_plugin/commands/mobile/get_system_capability_request.h"
#include "sdl_rpc_plugin/commands/mobile/get_system_capability_response.h"
-#include "sdl_rpc_plugin/commands/mobile/get_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/mobile/get_vehicle_data_response.h"
#include "sdl_rpc_plugin/commands/mobile/get_way_points_request.h"
#include "sdl_rpc_plugin/commands/mobile/get_way_points_response.h"
#include "sdl_rpc_plugin/commands/mobile/list_files_request.h"
@@ -75,7 +71,6 @@
#include "sdl_rpc_plugin/commands/mobile/on_command_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_permissions_change_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_tbt_client_state_notification.h"
-#include "sdl_rpc_plugin/commands/mobile/on_vehicle_data_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_hash_change_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_way_point_change_notification.h"
#include "sdl_rpc_plugin/commands/mobile/perform_audio_pass_thru_request.h"
@@ -84,8 +79,6 @@
#include "sdl_rpc_plugin/commands/mobile/perform_interaction_response.h"
#include "sdl_rpc_plugin/commands/mobile/put_file_request.h"
#include "sdl_rpc_plugin/commands/mobile/put_file_response.h"
-#include "sdl_rpc_plugin/commands/mobile/read_did_request.h"
-#include "sdl_rpc_plugin/commands/mobile/read_did_response.h"
#include "sdl_rpc_plugin/commands/mobile/register_app_interface_request.h"
#include "sdl_rpc_plugin/commands/mobile/register_app_interface_response.h"
#include "sdl_rpc_plugin/commands/mobile/reset_global_properties_request.h"
@@ -110,8 +103,6 @@
#include "sdl_rpc_plugin/commands/mobile/speak_response.h"
#include "sdl_rpc_plugin/commands/mobile/subscribe_button_request.h"
#include "sdl_rpc_plugin/commands/mobile/subscribe_button_response.h"
-#include "sdl_rpc_plugin/commands/mobile/subscribe_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/mobile/subscribe_vehicle_data_response.h"
#include "sdl_rpc_plugin/commands/mobile/subscribe_way_points_request.h"
#include "sdl_rpc_plugin/commands/mobile/subscribe_way_points_response.h"
#include "sdl_rpc_plugin/commands/mobile/unsubscribe_way_points_request.h"
@@ -120,8 +111,6 @@
#include "sdl_rpc_plugin/commands/mobile/unregister_app_interface_response.h"
#include "sdl_rpc_plugin/commands/mobile/unsubscribe_button_request.h"
#include "sdl_rpc_plugin/commands/mobile/unsubscribe_button_response.h"
-#include "sdl_rpc_plugin/commands/mobile/unsubscribe_vehicle_data_request.h"
-#include "sdl_rpc_plugin/commands/mobile/unsubscribe_vehicle_data_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/system_request.h"
@@ -129,8 +118,6 @@
#include "sdl_rpc_plugin/commands/mobile/on_keyboard_input_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_touch_event_notification.h"
#include "sdl_rpc_plugin/commands/mobile/on_system_request_notification.h"
-#include "sdl_rpc_plugin/commands/mobile/diagnostic_message_request.h"
-#include "sdl_rpc_plugin/commands/mobile/diagnostic_message_response.h"
#include "sdl_rpc_plugin/commands/mobile/send_location_request.h"
#include "sdl_rpc_plugin/commands/mobile/send_location_response.h"
#include "sdl_rpc_plugin/commands/mobile/dial_number_request.h"
@@ -280,17 +267,6 @@ CommandCreator& MobileCommandFactory::get_creator_factory(
? factory.GetCreator<commands::ShowConstantTBTRequest>()
: factory.GetCreator<commands::GetWayPointsResponse>();
}
- case mobile_apis::FunctionID::SubscribeVehicleDataID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::SubscribeVehicleDataRequest>()
- : factory.GetCreator<commands::SubscribeVehicleDataResponse>();
- }
- case mobile_apis::FunctionID::UnsubscribeVehicleDataID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::UnsubscribeVehicleDataRequest>()
- : factory
- .GetCreator<commands::UnsubscribeVehicleDataResponse>();
- }
case mobile_apis::FunctionID::SubscribeWayPointsID: {
return mobile_api::messageType::request == message_type
? factory.GetCreator<commands::SubscribeWayPointsRequest>()
@@ -306,16 +282,6 @@ CommandCreator& MobileCommandFactory::get_creator_factory(
? factory.GetCreator<commands::GetSystemCapabilityRequest>()
: factory.GetCreator<commands::GetSystemCapabilityResponse>();
}
- case mobile_apis::FunctionID::ReadDIDID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::ReadDIDRequest>()
- : factory.GetCreator<commands::ReadDIDResponse>();
- }
- case mobile_apis::FunctionID::GetVehicleDataID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::GetVehicleDataRequest>()
- : factory.GetCreator<commands::GetVehicleDataResponse>();
- }
case mobile_apis::FunctionID::ScrollableMessageID: {
return mobile_api::messageType::request == message_type
? factory.GetCreator<commands::ScrollableMessageRequest>()
@@ -347,16 +313,6 @@ CommandCreator& MobileCommandFactory::get_creator_factory(
? factory.GetCreator<commands::ChangeRegistrationRequest>()
: factory.GetCreator<commands::ChangeRegistrationResponse>();
}
- case mobile_apis::FunctionID::GetDTCsID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::GetDTCsRequest>()
- : factory.GetCreator<commands::GetDTCsResponse>();
- }
- case mobile_apis::FunctionID::DiagnosticMessageID: {
- return mobile_api::messageType::request == message_type
- ? factory.GetCreator<commands::DiagnosticMessageRequest>()
- : factory.GetCreator<commands::DiagnosticMessageResponse>();
- }
case mobile_apis::FunctionID::SetMediaClockTimerID: {
return mobile_api::messageType::request == message_type
? factory.GetCreator<commands::SetMediaClockRequest>()
@@ -391,9 +347,6 @@ CommandCreator& MobileCommandFactory::get_creator_factory(
case mobile_apis::FunctionID::OnAudioPassThruID: {
return factory.GetCreator<commands::OnAudioPassThruNotification>();
}
- case mobile_apis::FunctionID::OnVehicleDataID: {
- return factory.GetCreator<commands::OnVehicleDataNotification>();
- }
case mobile_apis::FunctionID::OnAppInterfaceUnregisteredID: {
return factory
.GetCreator<commands::OnAppInterfaceUnregisteredNotification>();