summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-01-22 17:57:34 -0500
committerjacobkeeler <jacob.keeler@livioradio.com>2019-01-22 20:01:01 -0500
commitea3832dc24e1502858020cd5774bfd1305725f21 (patch)
tree2aa19c8af5ce98fa44f524169c71fb59e4a6477f /src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc
parentfc2c76d23dcd8f4016edff90d215940a810d9f86 (diff)
downloadsdl_core-ea3832dc24e1502858020cd5774bfd1305725f21.tar.gz
Add AppServiceRPCPlugin to app service commands
Diffstat (limited to 'src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc
index c143315b8c..2513a92f15 100644
--- a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc
+++ b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/hmi/as_publish_app_service_response.cc
@@ -47,7 +47,15 @@ ASPublishAppServiceResponse::ASPublishAppServiceResponse(
application_manager,
rpc_service,
hmi_capabilities,
- policy_handler) {}
+ policy_handler)
+ , plugin_(NULL) {
+ auto plugin = (application_manager.GetPluginManager().FindPluginToProcess(
+ hmi_apis::FunctionID::AppService_PublishAppService,
+ app_mngr::commands::Command::CommandSource::SOURCE_HMI));
+ if (plugin) {
+ plugin_ = dynamic_cast<AppServiceRpcPlugin*>(&(*plugin));
+ }
+}
ASPublishAppServiceResponse::~ASPublishAppServiceResponse() {}