diff options
author | fronneburg <fronneburg@xevo.com> | 2018-07-05 10:12:28 -0700 |
---|---|---|
committer | fronneburg <fronneburg@xevo.com> | 2018-07-05 10:12:28 -0700 |
commit | bf5c81d55c8bbb839680d0eab29d892a82330341 (patch) | |
tree | e952d6d173599306614efd15962491c97f34d171 /src/components/application_manager/src/resumption | |
parent | d4159c1768e28dccdd6027a714de59f93e06c8b2 (diff) | |
parent | ba1da7bc2ff3fd37638620f6bea526384646ab0e (diff) | |
download | sdl_core-bf5c81d55c8bbb839680d0eab29d892a82330341.tar.gz |
Merge branch 'develop' of https://github.com/smartdevicelink/sdl_core into feat/mt_transport_changes
Conflicts:
src/components/application_manager/src/application_manager_impl.cc
src/components/application_manager/test/application_manager_impl_test.cc
src/components/remote_control/test/include/mock_application.h
Diffstat (limited to 'src/components/application_manager/src/resumption')
-rw-r--r-- | src/components/application_manager/src/resumption/resume_ctrl_impl.cc | 16 | ||||
-rw-r--r-- | src/components/application_manager/src/resumption/resumption_data.cc | 13 |
2 files changed, 7 insertions, 22 deletions
diff --git a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc index 7984512a61..2cdab710f1 100644 --- a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc +++ b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc @@ -35,6 +35,7 @@ #include <algorithm> #include "application_manager/application_manager.h" +#include "application_manager/rpc_service.h" #include "utils/file_system.h" #include "connection_handler/connection_handler_impl.h" @@ -703,17 +704,8 @@ void ResumeCtrlImpl::AddSubscriptions( MessageHelper::SendAllOnButtonSubscriptionNotificationsForApp( application, application_manager_); - if (subscriptions.keyExists(strings::application_vehicle_info)) { - const smart_objects::SmartObject& subscriptions_ivi = - subscriptions[strings::application_vehicle_info]; - mobile_apis::VehicleDataType::eType ivi; - for (size_t i = 0; i < subscriptions_ivi.length(); ++i) { - ivi = static_cast<mobile_apis::VehicleDataType::eType>( - (subscriptions_ivi[i]).asInt()); - application->SubscribeToIVI(ivi); - } - ProcessHMIRequests(MessageHelper::GetIVISubscriptionRequests( - application, application_manager_)); + for (auto& extension : application->Extensions()) { + extension->ProcessResumption(subscriptions); } } } @@ -829,7 +821,7 @@ bool ResumeCtrlImpl::ProcessHMIRequest(smart_objects::SmartObjectSPtr request, (*request)[strings::correlation_id].asInt(); subscribe_on_event(function_id, hmi_correlation_id); } - if (!application_manager_.ManageHMICommand(request)) { + if (!application_manager_.GetRPCService().ManageHMICommand(request)) { LOG4CXX_ERROR(logger_, "Unable to send request"); return false; } diff --git a/src/components/application_manager/src/resumption/resumption_data.cc b/src/components/application_manager/src/resumption/resumption_data.cc index bd5bdbddab..72215dcf97 100644 --- a/src/components/application_manager/src/resumption/resumption_data.cc +++ b/src/components/application_manager/src/resumption/resumption_data.cc @@ -159,16 +159,9 @@ smart_objects::SmartObject ResumptionData::GetApplicationSubscriptions( strings::application_buttons, subscriptions); - DataAccessor<VehicleInfoSubscriptions> vi_accessor = - application->SubscribedIVI(); - - const VehicleInfoSubscriptions& vi_subscription = vi_accessor.GetData(); - - LOG4CXX_DEBUG(logger_, "SubscribedIVI:" << vi_subscription.size()); - Append(vi_subscription.begin(), - vi_subscription.end(), - strings::application_vehicle_info, - subscriptions); + for (auto extension : application->Extensions()) { + extension->SaveResumptionData(subscriptions); + } return subscriptions; } |