summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/hmi_command_factory.cc
diff options
context:
space:
mode:
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.cc2604
1 files changed, 2004 insertions, 600 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 1cd9414ca3..f5321ff08f 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
@@ -297,8 +297,15 @@ CREATE_LOGGERPTR_GLOBAL(logger_, "ApplicationManager")
namespace sdl_rpc_plugin {
using namespace application_manager;
-HMICommandFactory::HMICommandFactory(ApplicationManager& application_manager)
- : application_manager_(application_manager) {}
+HMICommandFactory::HMICommandFactory(
+ ApplicationManager& application_manager,
+ rpc_service::RPCService& rpc_service,
+ HMICapabilities& hmi_capabilities,
+ policy::PolicyHandlerInterface& policy_handler)
+ : application_manager_(application_manager)
+ , rpc_service_(rpc_service)
+ , hmi_capabilities_(hmi_capabilities)
+ , policy_handler_(policy_handler) {}
CommandSharedPtr HMICommandFactory::CreateCommand(
const app_mngr::commands::MessageSharedPtr& message,
@@ -308,8 +315,12 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
LOG4CXX_DEBUG(
logger_, "HMICommandFactory::CreateCommand function_id: " << function_id);
- CommandSharedPtr command(new application_manager::commands::CommandImpl(
- message, application_manager_));
+ CommandSharedPtr command(
+ new application_manager::commands::CommandImpl(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
bool is_response = false;
const int msg_type =
@@ -329,533 +340,907 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
switch (function_id) {
case hmi_apis::FunctionID::BasicCommunication_OnStartDeviceDiscovery: {
- command.reset(
- new commands::OnStartDeviceDiscovery(message, application_manager_));
+ command.reset(new commands::OnStartDeviceDiscovery(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_UpdateDeviceList: {
if (is_response) {
- command.reset(new commands::UpdateDeviceListResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UpdateDeviceListResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UpdateDeviceListRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UpdateDeviceListRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_ActivateApp: {
if (is_response) {
- command.reset(
- new commands::ActivateAppResponse(message, application_manager_));
+ command.reset(new commands::ActivateAppResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::ActivateAppRequest(message, application_manager_));
+ command.reset(new commands::ActivateAppRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
#ifdef EXTERNAL_PROPRIETARY_MODE
case hmi_apis::FunctionID::BasicCommunication_DecryptCertificate: {
if (is_response) {
- command.reset(new commands::DecryptCertificateResponse(
- message, application_manager_));
+ command.reset(
+ new commands::DecryptCertificateResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::DecryptCertificateRequest(
- message, application_manager_));
+ command.reset(
+ new commands::DecryptCertificateRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
#endif // EXTERNAL_PROPRIETARY_MODE
case hmi_apis::FunctionID::BasicCommunication_GetSystemInfo: {
if (is_response) {
- command.reset(
- new commands::GetSystemInfoResponse(message, application_manager_));
+ command.reset(new commands::GetSystemInfoResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::GetSystemInfoRequest(message, application_manager_));
+ command.reset(new commands::GetSystemInfoRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_ActivateApp: {
if (is_response) {
- command.reset(new commands::SDLActivateAppResponse(
- message, application_manager_));
+ command.reset(new commands::SDLActivateAppResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::SDLActivateAppRequest(message, application_manager_));
+ command.reset(new commands::SDLActivateAppRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_PolicyUpdate: {
if (is_response) {
- command.reset(new commands::SDLPolicyUpdateResponse(
- message, application_manager_));
- } else {
command.reset(
- new commands::SDLPolicyUpdate(message, application_manager_));
+ new commands::SDLPolicyUpdateResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
+ } else {
+ command.reset(new commands::SDLPolicyUpdate(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_GetURLS: {
if (is_response) {
- command.reset(
- new commands::GetUrlsResponse(message, application_manager_));
+ command.reset(new commands::GetUrlsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::GetUrls(message, application_manager_));
+ command.reset(new commands::GetUrls(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_OnAppPermissionChanged: {
- command.reset(new commands::OnAppPermissionChangedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppPermissionChangedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_GetListOfPermissions: {
if (is_response) {
- command.reset(new commands::SDLGetListOfPermissionsResponse(
- message, application_manager_));
+ command.reset(
+ new commands::SDLGetListOfPermissionsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::SDLGetListOfPermissionsRequest(
- message, application_manager_));
+ command.reset(
+ new commands::SDLGetListOfPermissionsRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_GetUserFriendlyMessage: {
if (is_response) {
command.reset(new commands::SDLGetUserFriendlyMessageResponse(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::SDLGetUserFriendlyMessageRequest(
- message, application_manager_));
+ command.reset(
+ new commands::SDLGetUserFriendlyMessageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_GetStatusUpdate: {
if (is_response) {
- command.reset(new commands::SDLGetStatusUpdateResponse(
- message, application_manager_));
+ command.reset(
+ new commands::SDLGetStatusUpdateResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::SDLGetStatusUpdateRequest(
- message, application_manager_));
+ command.reset(
+ new commands::SDLGetStatusUpdateRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_OnStatusUpdate: {
- command.reset(new commands::OnStatusUpdateNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnStatusUpdateNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnAppPermissionConsent: {
- command.reset(new commands::OnAppPermissionConsentNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppPermissionConsentNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_MixingAudioSupported: {
if (is_response) {
- command.reset(new commands::MixingAudioSupportedResponse(
- message, application_manager_));
+ command.reset(
+ new commands::MixingAudioSupportedResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::MixingAudioSupportedRequest(
- message, application_manager_));
+ command.reset(
+ new commands::MixingAudioSupportedRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnExitAllApplications: {
- command.reset(new commands::OnExitAllApplicationsNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnExitAllApplicationsNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_AddCommand: {
if (is_response) {
- command.reset(
- new commands::UIAddCommandResponse(message, application_manager_));
+ command.reset(new commands::UIAddCommandResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIAddCommandRequest(message, application_manager_));
+ command.reset(new commands::UIAddCommandRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_DeleteCommand: {
if (is_response) {
- command.reset(new commands::UIDeleteCommandResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIDeleteCommandResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIDeleteCommandRequest(
- message, application_manager_));
+ command.reset(new commands::UIDeleteCommandRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_AddSubMenu: {
if (is_response) {
- command.reset(
- new commands::UIAddSubmenuResponse(message, application_manager_));
+ command.reset(new commands::UIAddSubmenuResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIAddSubmenuRequest(message, application_manager_));
+ command.reset(new commands::UIAddSubmenuRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_DeleteSubMenu: {
if (is_response) {
- command.reset(new commands::UIDeleteSubmenuResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIDeleteSubmenuResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIDeleteSubmenuRequest(
- message, application_manager_));
+ command.reset(new commands::UIDeleteSubmenuRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_SetMediaClockTimer: {
if (is_response) {
- command.reset(new commands::UISetMediaClockTimerResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UISetMediaClockTimerResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UISetMediaClockTimerRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UISetMediaClockTimerRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_PerformInteraction: {
if (is_response) {
- command.reset(new commands::UIPerformInteractionResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIPerformInteractionResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIPerformInteractionRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIPerformInteractionRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_SetGlobalProperties: {
if (is_response) {
- command.reset(new commands::UISetGlobalPropertiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UISetGlobalPropertiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UISetGlobalPropertiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UISetGlobalPropertiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_ScrollableMessage: {
if (is_response) {
- command.reset(new commands::UIScrollableMessageResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIScrollableMessageResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIScrollableMessageRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIScrollableMessageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_SetAppIcon: {
if (is_response) {
- command.reset(
- new commands::UISetAppIconResponse(message, application_manager_));
+ command.reset(new commands::UISetAppIconResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UISetAppIconRequest(message, application_manager_));
+ command.reset(new commands::UISetAppIconRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_GetSupportedLanguages: {
if (is_response) {
- command.reset(new commands::UIGetSupportedLanguagesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIGetSupportedLanguagesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIGetSupportedLanguagesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIGetSupportedLanguagesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_GetLanguage: {
if (is_response) {
- command.reset(
- new commands::UIGetLanguageResponse(message, application_manager_));
+ command.reset(new commands::UIGetLanguageResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIGetLanguageRequest(message, application_manager_));
+ command.reset(new commands::UIGetLanguageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_GetCapabilities: {
if (is_response) {
- command.reset(new commands::UIGetCapabilitiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIGetCapabilitiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIGetCapabilitiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIGetCapabilitiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_ChangeRegistration: {
if (is_response) {
- command.reset(new commands::UIChangeRegistratioResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIChangeRegistratioResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIChangeRegistrationRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIChangeRegistrationRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_PerformAudioPassThru: {
if (is_response) {
- command.reset(new commands::UIPerformAudioPassThruResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIPerformAudioPassThruResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIPerformAudioPassThruRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIPerformAudioPassThruRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_EndAudioPassThru: {
if (is_response) {
- command.reset(new commands::UIEndAudioPassThruResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UIEndAudioPassThruResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UIEndAudioPassThruRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UIEndAudioPassThruRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_Alert: {
if (is_response) {
- command.reset(
- new commands::UIAlertResponse(message, application_manager_));
+ command.reset(new commands::UIAlertResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIAlertRequest(message, application_manager_));
+ command.reset(new commands::UIAlertRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_IsReady: {
if (is_response) {
- command.reset(
- new commands::VRIsReadyResponse(message, application_manager_));
+ command.reset(new commands::VRIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VRIsReadyRequest(message, application_manager_));
+ command.reset(new commands::VRIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_AddCommand: {
if (is_response) {
- command.reset(
- new commands::VRAddCommandResponse(message, application_manager_));
+ command.reset(new commands::VRAddCommandResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VRAddCommandRequest(message, application_manager_));
+ command.reset(new commands::VRAddCommandRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_DeleteCommand: {
if (is_response) {
- command.reset(new commands::VRDeleteCommandResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VRDeleteCommandResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VRDeleteCommandRequest(
- message, application_manager_));
+ command.reset(new commands::VRDeleteCommandRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_ChangeRegistration: {
if (is_response) {
- command.reset(new commands::VRChangeRegistrationResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VRChangeRegistrationResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VRChangeRegistrationRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VRChangeRegistrationRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_GetSupportedLanguages: {
if (is_response) {
- command.reset(new commands::VRGetSupportedLanguagesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VRGetSupportedLanguagesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VRGetSupportedLanguagesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VRGetSupportedLanguagesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_GetLanguage: {
if (is_response) {
- command.reset(
- new commands::VRGetLanguageResponse(message, application_manager_));
+ command.reset(new commands::VRGetLanguageResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VRGetLanguageRequest(message, application_manager_));
+ command.reset(new commands::VRGetLanguageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_GetCapabilities: {
if (is_response) {
- command.reset(new commands::VRGetCapabilitiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VRGetCapabilitiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VRGetCapabilitiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VRGetCapabilitiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_IsReady: {
if (is_response) {
- command.reset(
- new commands::TTSIsReadyResponse(message, application_manager_));
+ command.reset(new commands::TTSIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::TTSIsReadyRequest(message, application_manager_));
+ command.reset(new commands::TTSIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_ChangeRegistration: {
if (is_response) {
- command.reset(new commands::TTSChangeRegistratioResponse(
- message, application_manager_));
+ command.reset(
+ new commands::TTSChangeRegistratioResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::TTSChangeRegistrationRequest(
- message, application_manager_));
+ command.reset(
+ new commands::TTSChangeRegistrationRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_GetSupportedLanguages: {
if (is_response) {
- command.reset(new commands::TTSGetSupportedLanguagesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::TTSGetSupportedLanguagesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::TTSGetSupportedLanguagesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::TTSGetSupportedLanguagesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_StopSpeaking: {
if (is_response) {
- command.reset(new commands::TTSStopSpeakingResponse(
- message, application_manager_));
+ command.reset(
+ new commands::TTSStopSpeakingResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::TTSStopSpeakingRequest(
- message, application_manager_));
+ command.reset(new commands::TTSStopSpeakingRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_GetLanguage: {
if (is_response) {
- command.reset(new commands::TTSGetLanguageResponse(
- message, application_manager_));
+ command.reset(new commands::TTSGetLanguageResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::TTSGetLanguageRequest(message, application_manager_));
+ command.reset(new commands::TTSGetLanguageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_Speak: {
if (is_response) {
- command.reset(
- new commands::TTSSpeakResponse(message, application_manager_));
+ command.reset(new commands::TTSSpeakResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::TTSSpeakRequest(message, application_manager_));
+ command.reset(new commands::TTSSpeakRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_SetGlobalProperties: {
if (is_response) {
- command.reset(new commands::TTSSetGlobalPropertiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::TTSSetGlobalPropertiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::TTSSetGlobalPropertiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::TTSSetGlobalPropertiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_GetCapabilities: {
if (is_response) {
- command.reset(new commands::TTSGetCapabilitiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::TTSGetCapabilitiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::TTSGetCapabilitiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::TTSGetCapabilitiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::TTS_Started: {
- command.reset(new commands::OnTTSStartedNotification(
- message, application_manager_));
+ command.reset(new commands::OnTTSStartedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::TTS_Stopped: {
- command.reset(new commands::OnTTSStoppedNotification(
- message, application_manager_));
+ command.reset(new commands::OnTTSStoppedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnAppActivated: {
- command.reset(new commands::OnAppActivatedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppActivatedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnAwakeSDL: {
- command.reset(
- new commands::OnAwakeSDLNotification(message, application_manager_));
+ command.reset(new commands::OnAwakeSDLNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnExitApplication: {
- command.reset(new commands::OnExitApplicationNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnExitApplicationNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_Show: {
if (is_response) {
- command.reset(
- new commands::UIShowResponse(message, application_manager_));
+ command.reset(new commands::UIShowResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIShowRequest(message, application_manager_));
+ command.reset(new commands::UIShowRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_Slider: {
if (is_response) {
- command.reset(
- new commands::UISliderResponse(message, application_manager_));
+ command.reset(new commands::UISliderResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UISliderRequest(message, application_manager_));
+ command.reset(new commands::UISliderRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_ClosePopUp: {
if (is_response) {
- command.reset(
- new commands::ClosePopupResponse(message, application_manager_));
+ command.reset(new commands::ClosePopupResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::ClosePopupRequest(message, application_manager_));
+ command.reset(new commands::ClosePopupRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_IsReady: {
if (is_response) {
- command.reset(
- new commands::UIIsReadyResponse(message, application_manager_));
+ command.reset(new commands::UIIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UIIsReadyRequest(message, application_manager_));
+ command.reset(new commands::UIIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VehicleInfo_IsReady: {
if (is_response) {
- command.reset(
- new commands::VIIsReadyResponse(message, application_manager_));
+ command.reset(new commands::VIIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VIIsReadyRequest(message, application_manager_));
+ command.reset(new commands::VIIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VehicleInfo_ReadDID: {
if (is_response) {
- command.reset(
- new commands::VIReadDIDResponse(message, application_manager_));
+ command.reset(new commands::VIReadDIDResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VIReadDIDRequest(message, application_manager_));
+ command.reset(new commands::VIReadDIDRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
@@ -863,12 +1248,18 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
case hmi_apis::FunctionID::VehicleInfo_GetGpsData: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
- hmi_apis::FunctionID::VehicleInfo_GetGpsData>(
- message, application_manager_));
+ hmi_apis::FunctionID::VehicleInfo_GetGpsData>(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
- hmi_apis::FunctionID::VehicleInfo_GetGpsData>(
- message, application_manager_));
+ hmi_apis::FunctionID::VehicleInfo_GetGpsData>(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetSpeed: {
@@ -897,44 +1288,76 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetFuelLevelState: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetFuelLevelState>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetFuelLevelState>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetInstantFuelConsumption: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetExternalTemperature: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetPrndl: {
@@ -963,165 +1386,283 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetOdometer: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
- hmi_apis::FunctionID::VehicleInfo_GetOdometer>(
- message, application_manager_));
+ hmi_apis::FunctionID::VehicleInfo_GetOdometer>(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
- hmi_apis::FunctionID::VehicleInfo_GetOdometer>(
- message, application_manager_));
+ hmi_apis::FunctionID::VehicleInfo_GetOdometer>(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetBeltStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetBodyInformation: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetDeviceStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetDriverBraking: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetWiperStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetHeadLampStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetEngineTorque: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetAccPedalPosition: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetSteeringWheelAngle: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetECallInfo: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetAirbagStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetEmergencyEvent: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetClusterModeStatus: {
if (is_response)
command.reset(new commands::VIGetVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_GetClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIGetVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_GetClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetMyKey: {
@@ -1138,158 +1679,275 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
#else
case hmi_apis::FunctionID::VehicleInfo_GetVehicleData: {
if (is_response) {
- command.reset(new commands::VIGetVehicleDataResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VIGetVehicleDataResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VIGetVehicleDataRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VIGetVehicleDataRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
#endif // #ifdef HMI_DBUS_API
case hmi_apis::FunctionID::VehicleInfo_GetDTCs: {
if (is_response) {
- command.reset(
- new commands::VIGetDTCsResponse(message, application_manager_));
+ command.reset(new commands::VIGetDTCsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::VIGetDTCsRequest(message, application_manager_));
+ command.reset(new commands::VIGetDTCsRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VehicleInfo_DiagnosticMessage: {
if (is_response) {
- command.reset(new commands::VIDiagnosticMessageResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VIDiagnosticMessageResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VIDiagnosticMessageRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VIDiagnosticMessageRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VehicleInfo_GetVehicleType: {
if (is_response) {
- command.reset(new commands::VIGetVehicleTypeResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VIGetVehicleTypeResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VIGetVehicleTypeRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VIGetVehicleTypeRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_IsReady: {
if (is_response) {
- command.reset(
- new commands::NaviIsReadyResponse(message, application_manager_));
+ command.reset(new commands::NaviIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::NaviIsReadyRequest(message, application_manager_));
+ command.reset(new commands::NaviIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_AlertManeuver: {
if (is_response) {
- command.reset(new commands::NaviAlertManeuverResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviAlertManeuverResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviAlertManeuverRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviAlertManeuverRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_GetWayPoints: {
if (is_response) {
- command.reset(new commands::NaviGetWayPointsResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviGetWayPointsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviGetWayPointsRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviGetWayPointsRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_UpdateTurnList: {
if (is_response) {
- command.reset(new commands::NaviUpdateTurnListResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviUpdateTurnListResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviUpdateTurnListRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviUpdateTurnListRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_ShowConstantTBT: {
if (is_response) {
- command.reset(new commands::NaviShowConstantTBTResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviShowConstantTBTResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviShowConstantTBTRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviShowConstantTBTRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_SubscribeWayPoints: {
if (is_response) {
- command.reset(new commands::NaviSubscribeWayPointsResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSubscribeWayPointsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviSubscribeWayPointsRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSubscribeWayPointsRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_UnsubscribeWayPoints: {
if (is_response) {
- command.reset(new commands::NaviUnsubscribeWayPointsResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviUnsubscribeWayPointsResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviUnSubscribeWayPointsRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviUnSubscribeWayPointsRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Buttons_GetCapabilities: {
if (is_response) {
- command.reset(new commands::ButtonGetCapabilitiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::ButtonGetCapabilitiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::ButtonGetCapabilitiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::ButtonGetCapabilitiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_OnAllowSDLFunctionality: {
command.reset(new commands::OnAllowSDLFunctionalityNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnSDLConsentNeeded: {
- command.reset(new commands::OnSDLConsentNeededNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnSDLConsentNeededNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_UpdateSDL: {
if (is_response) {
- command.reset(
- new commands::UpdateSDLResponse(message, application_manager_));
+ command.reset(new commands::UpdateSDLResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UpdateSDLRequest(message, application_manager_));
+ command.reset(new commands::UpdateSDLRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnIgnitionCycleOver: {
- command.reset(new commands::OnIgnitionCycleOverNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnIgnitionCycleOverNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnSystemInfoChanged: {
- command.reset(new commands::OnSystemInfoChangedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnSystemInfoChangedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnReady: {
- command.reset(
- new commands::OnReadyNotification(message, application_manager_));
+ command.reset(new commands::OnReadyNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnSystemTimeReady: {
@@ -1298,103 +1956,175 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnDeviceChosen: {
- command.reset(new commands::OnDeviceChosenNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnDeviceChosenNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnSystemContext: {
- command.reset(new commands::OnSystemContextNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnSystemContextNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnDriverDistraction: {
command.reset(new commands::hmi::OnDriverDistractionNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnUpdateDeviceList: {
- command.reset(
- new commands::OnUpdateDeviceList(message, application_manager_));
+ command.reset(new commands::OnUpdateDeviceList(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnAppRegistered: {
- command.reset(new commands::OnAppRegisteredNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppRegisteredNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnAppUnregistered: {
- command.reset(new commands::OnAppUnregisteredNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppUnregisteredNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnFindApplications: {
- command.reset(
- new commands::OnFindApplications(message, application_manager_));
+ command.reset(new commands::OnFindApplications(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_UpdateAppList: {
if (is_response) {
- command.reset(
- new commands::UpdateAppListResponse(message, application_manager_));
+ command.reset(new commands::UpdateAppListResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::UpdateAppListRequest(message, application_manager_));
+ command.reset(new commands::UpdateAppListRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::VR_Started: {
- command.reset(
- new commands::OnVRStartedNotification(message, application_manager_));
+ command.reset(new commands::OnVRStartedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VR_Stopped: {
- command.reset(
- new commands::OnVRStoppedNotification(message, application_manager_));
+ command.reset(new commands::OnVRStoppedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VR_OnCommand: {
- command.reset(
- new commands::OnVRCommandNotification(message, application_manager_));
+ command.reset(new commands::OnVRCommandNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnCommand: {
- command.reset(
- new commands::OnUICommandNotification(message, application_manager_));
+ command.reset(new commands::OnUICommandNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnAppDeactivated: {
- command.reset(new commands::OnAppDeactivatedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAppDeactivatedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnLanguageChange: {
- command.reset(new commands::OnUILanguageChangeNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnUILanguageChangeNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VR_OnLanguageChange: {
- command.reset(new commands::OnVRLanguageChangeNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVRLanguageChangeNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::TTS_OnLanguageChange: {
- command.reset(new commands::OnTTSLanguageChangeNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnTTSLanguageChangeNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::Buttons_OnButtonEvent: {
- command.reset(new commands::hmi::OnButtonEventNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnButtonEventNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::Buttons_OnButtonPress: {
- command.reset(new commands::hmi::OnButtonPressNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnButtonPressNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::Buttons_OnButtonSubscription: {
command.reset(new commands::hmi::OnButtonSubscriptionNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
#ifdef HMI_DBUS_API
@@ -1402,285 +2132,493 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeGps>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeGps>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeSpeed: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeSpeed>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeSpeed>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeRpm: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeRpm>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeRpm>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel_State: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel_State>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeFuelLevel_State>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeInstantFuelConsumption: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeExternalTemperature: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribePrndl: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribePrndl>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribePrndl>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeVin: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeVin>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeVin>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeTirePressure: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeOdometer: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeOdometer>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeOdometer>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeBeltStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeBodyInformation: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeDeviceStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeDriverBraking: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeWiperStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeHeadLampStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeEngineTorque: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeAccPedalPosition: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeSteeringWheelAngle: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeECallInfo: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeAirbagStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeEmergencyEvent: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeClusterModeStatus: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_SubscribeMyKey: {
if (is_response)
command.reset(new commands::VISubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeMyKey>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VISubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_SubscribeMyKey>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
#else
case hmi_apis::FunctionID::VehicleInfo_SubscribeVehicleData: {
if (is_response) {
- command.reset(new commands::VISubscribeVehicleDataResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VISubscribeVehicleDataResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VISubscribeVehicleDataRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VISubscribeVehicleDataRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
@@ -1690,55 +2628,95 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeGps>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeGps>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeSpeed: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeSpeed>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeSpeed>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeRpm: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeRpm>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeRpm>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel_State: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel_State>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeFuelLevel_State>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeInstantFuelConsumption: {
@@ -1746,490 +2724,849 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::
VehicleInfo_UnsubscribeInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::
VehicleInfo_UnsubscribeInstantFuelConsumption>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeExternalTemperature: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeExternalTemperature>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribePrndl: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribePrndl>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribePrndl>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeVin: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeVin>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeVin>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeTirePressure: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeTirePressure>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeOdometer: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeOdometer>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeOdometer>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeBeltStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeBeltStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeBodyInformation: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeBodyInformation>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeDeviceStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeDeviceStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeDriverBraking: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeDriverBraking>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeWiperStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeWiperStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeHeadLampStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeHeadLampStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeEngineTorque: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeEngineTorque>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeAccPedalPosition: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeAccPedalPosition>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeSteeringWheelAngle: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeSteeringWheelAngle>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeECallInfo: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeECallInfo>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeAirbagStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeAirbagStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeEmergencyEvent: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeEmergencyEvent>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeClusterModeStatus: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeClusterModeStatus>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeMyKey: {
if (is_response)
command.reset(new commands::VIUnsubscribeVehicleDataResponseTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeMyKey>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
else
command.reset(new commands::VIUnsubscribeVehicleDataRequestTemplate<
hmi_apis::FunctionID::VehicleInfo_UnsubscribeMyKey>(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
#else
case hmi_apis::FunctionID::VehicleInfo_UnsubscribeVehicleData: {
if (is_response) {
- command.reset(new commands::VIUnsubscribeVehicleDataResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VIUnsubscribeVehicleDataResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VIUnsubscribeVehicleDataRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VIUnsubscribeVehicleDataRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
#endif // #ifdef HMI_DBUS_API
#ifdef HMI_DBUS_API
case hmi_apis::FunctionID::VehicleInfo_OnGpsData: {
- command.reset(
- new commands::OnVIGpsDataNotification(message, application_manager_));
+ command.reset(new commands::OnVIGpsDataNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnSpeed: {
- command.reset(
- new commands::OnVISpeedNotification(message, application_manager_));
+ command.reset(new commands::OnVISpeedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnRpm: {
- command.reset(
- new commands::OnVIRpmNotification(message, application_manager_));
+ command.reset(new commands::OnVIRpmNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnFuelLevel: {
- command.reset(new commands::OnVIFuelLevelNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIFuelLevelNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnFuelLevelState: {
- command.reset(new commands::OnVIFuelLevelStateNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIFuelLevelStateNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnInstantFuelConsumption: {
command.reset(new commands::OnVIInstantFuelConsumptionNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnExternalTemperature: {
command.reset(new commands::OnVIExternalTemperatureNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnVin: {
- command.reset(
- new commands::OnVIVinNotification(message, application_manager_));
+ command.reset(new commands::OnVIVinNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnPrndl: {
- command.reset(
- new commands::OnVIPrndlNotification(message, application_manager_));
+ command.reset(new commands::OnVIPrndlNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnTirePressure: {
- command.reset(new commands::OnVITirePressureNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVITirePressureNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnOdometer: {
- command.reset(new commands::OnVIOdometerNotification(
- message, application_manager_));
+ command.reset(new commands::OnVIOdometerNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnBeltStatus: {
- command.reset(new commands::OnVIBeltStatusNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIBeltStatusNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnBodyInformation: {
- command.reset(new commands::OnVIBodyInformationNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIBodyInformationNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnDeviceStatus: {
- command.reset(new commands::OnVIDeviceStatusNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIDeviceStatusNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnDriverBraking: {
- command.reset(new commands::OnVIDriverBrakingNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIDriverBrakingNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnWiperStatus: {
- command.reset(new commands::OnVIWiperStatusNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIWiperStatusNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnHeadLampStatus: {
- command.reset(new commands::OnVIHeadLampStatusNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIHeadLampStatusNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnEngineTorque: {
- command.reset(new commands::OnVIEngineTorqueNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIEngineTorqueNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnAccPedalPosition: {
- command.reset(new commands::OnVIAccPedalPositionNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIAccPedalPositionNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnSteeringWheelAngle: {
- command.reset(new commands::OnVISteeringWheelAngleNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVISteeringWheelAngleNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VehicleInfo_OnMyKey: {
- command.reset(
- new commands::OnVIMyKeyNotification(message, application_manager_));
+ command.reset(new commands::OnVIMyKeyNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
#else
case hmi_apis::FunctionID::VehicleInfo_OnVehicleData: {
- command.reset(new commands::OnVIVehicleDataNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVIVehicleDataNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
#endif // #ifdef HMI_DBUS_API
case hmi_apis::FunctionID::Navigation_OnTBTClientState: {
- command.reset(new commands::OnNaviTBTClientStateNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnNaviTBTClientStateNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnKeyboardInput: {
- command.reset(new commands::hmi::OnUIKeyBoardInputNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnUIKeyBoardInputNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnTouchEvent: {
- command.reset(new commands::hmi::OnUITouchEventNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnUITouchEventNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnResetTimeout: {
- command.reset(new commands::hmi::OnUIResetTimeoutNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnUIResetTimeoutNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::Navigation_SetVideoConfig: {
if (is_response) {
- command.reset(new commands::NaviSetVideoConfigResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSetVideoConfigResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviSetVideoConfigRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSetVideoConfigRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_StartStream: {
if (is_response) {
- command.reset(new commands::NaviStartStreamResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviStartStreamResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviStartStreamRequest(
- message, application_manager_));
+ command.reset(new commands::NaviStartStreamRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_StopStream: {
if (is_response) {
- command.reset(new commands::NaviStopStreamResponse(
- message, application_manager_));
+ command.reset(new commands::NaviStopStreamResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::NaviStopStreamRequest(message, application_manager_));
+ command.reset(new commands::NaviStopStreamRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_StartAudioStream: {
if (is_response) {
- command.reset(new commands::AudioStartStreamResponse(
- message, application_manager_));
+ command.reset(
+ new commands::AudioStartStreamResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::AudioStartStreamRequest(
- message, application_manager_));
+ command.reset(
+ new commands::AudioStartStreamRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_StopAudioStream: {
if (is_response) {
- command.reset(new commands::AudioStopStreamResponse(
- message, application_manager_));
+ command.reset(
+ new commands::AudioStopStreamResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::AudioStopStreamRequest(
- message, application_manager_));
+ command.reset(new commands::AudioStopStreamRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_OnAudioDataStreaming: {
- command.reset(new commands::OnAudioDataStreamingNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnAudioDataStreamingNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::Navigation_OnVideoDataStreaming: {
- command.reset(new commands::OnVideoDataStreamingNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnVideoDataStreamingNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::VR_PerformInteraction: {
if (is_response) {
- command.reset(new commands::VRPerformInteractionResponse(
- message, application_manager_));
+ command.reset(
+ new commands::VRPerformInteractionResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::VRPerformInteractionRequest(
- message, application_manager_));
+ command.reset(
+ new commands::VRPerformInteractionRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnSystemRequest: {
- command.reset(new commands::OnSystemRequestNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnSystemRequestNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnPutFile: {
- command.reset(
- new commands::OnPutFileNotification(message, application_manager_));
+ command.reset(new commands::OnPutFileNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnResumeAudioSource: {
- command.reset(new commands::OnResumeAudioSourceNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnResumeAudioSourceNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_SetDisplayLayout: {
if (is_response) {
- command.reset(new commands::UiSetDisplayLayoutResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UiSetDisplayLayoutResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UiSetDisplayLayoutRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UiSetDisplayLayoutRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnSDLClose: {
- command.reset(
- new commands::OnSDLCloseNotification(message, application_manager_));
+ command.reset(new commands::OnSDLCloseNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnSDLPersistenceComplete: {
command.reset(new commands::OnSDLPersistenceCompleteNotification(
- message, application_manager_));
+ message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnFileRemoved: {
- command.reset(new commands::OnFileRemovedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnFileRemovedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::UI_OnRecordStart: {
- command.reset(new commands::OnRecordStartdNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnRecordStartdNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_SystemRequest: {
if (is_response) {
- command.reset(new commands::BasicCommunicationSystemResponse(
- message, application_manager_));
+ command.reset(
+ new commands::BasicCommunicationSystemResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::BasicCommunicationSystemRequest(
- message, application_manager_));
+ command.reset(
+ new commands::BasicCommunicationSystemRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
@@ -2245,91 +3582,158 @@ CommandSharedPtr HMICommandFactory::CreateCommand(
}
case hmi_apis::FunctionID::Navigation_SendLocation: {
if (is_response) {
- command.reset(new commands::NaviSendLocationResponse(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSendLocationResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::NaviSendLocationRequest(
- message, application_manager_));
+ command.reset(
+ new commands::NaviSendLocationRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::SDL_AddStatisticsInfo: {
- command.reset(new commands::AddStatisticsInfoNotification(
- message, application_manager_));
+ command.reset(
+ new commands::AddStatisticsInfoNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnSystemError: {
- command.reset(new commands::OnSystemErrorNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnSystemErrorNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnReceivedPolicyUpdate: {
- command.reset(
- new commands::OnReceivedPolicyUpdate(message, application_manager_));
+ command.reset(new commands::OnReceivedPolicyUpdate(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnPolicyUpdate: {
- command.reset(
- new commands::OnPolicyUpdate(message, application_manager_));
+ command.reset(new commands::OnPolicyUpdate(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::SDL_OnDeviceStateChanged: {
- command.reset(new commands::OnDeviceStateChangedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnDeviceStateChangedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::TTS_OnResetTimeout: {
- command.reset(new commands::hmi::OnTTSResetTimeoutNotification(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::OnTTSResetTimeoutNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_OnEventChanged: {
- command.reset(new commands::OnEventChangedNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnEventChangedNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::BasicCommunication_DialNumber: {
if (is_response) {
- command.reset(new commands::hmi::DialNumberResponse(
- message, application_manager_));
+ command.reset(
+ new commands::hmi::DialNumberResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::hmi::DialNumberRequest(
- message, application_manager_));
+ command.reset(new commands::hmi::DialNumberRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::Navigation_OnWayPointChange: {
- command.reset(new commands::OnNaviWayPointChangeNotification(
- message, application_manager_));
+ command.reset(
+ new commands::OnNaviWayPointChangeNotification(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
break;
}
case hmi_apis::FunctionID::RC_IsReady: {
if (is_response) {
- command.reset(
- new commands::RCIsReadyResponse(message, application_manager_));
+ command.reset(new commands::RCIsReadyResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(
- new commands::RCIsReadyRequest(message, application_manager_));
+ command.reset(new commands::RCIsReadyRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::RC_GetCapabilities: {
if (is_response) {
- command.reset(new commands::RCGetCapabilitiesResponse(
- message, application_manager_));
+ command.reset(
+ new commands::RCGetCapabilitiesResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::RCGetCapabilitiesRequest(
- message, application_manager_));
+ command.reset(
+ new commands::RCGetCapabilitiesRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}
case hmi_apis::FunctionID::UI_SendHapticData: {
if (is_response) {
- command.reset(new commands::UISendHapticDataResponse(
- message, application_manager_));
+ command.reset(
+ new commands::UISendHapticDataResponse(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
} else {
- command.reset(new commands::UISendHapticDataRequest(
- message, application_manager_));
+ command.reset(
+ new commands::UISendHapticDataRequest(message,
+ application_manager_,
+ rpc_service_,
+ hmi_capabilities_,
+ policy_handler_));
}
break;
}