summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption
diff options
context:
space:
mode:
authorAlexander <akutsan@luxoft.com>2018-06-15 15:38:04 +0300
committerIra Lytvynenko (GitHub) <ILytvynenko@luxoft.com>2018-06-26 12:01:48 +0300
commitc7be7148dc7f24d7eb19899f9ea16a159790afe4 (patch)
treed18f37ead7a81a0631dbd4fa84471deaa9dd191a /src/components/application_manager/src/resumption
parentc3ad07a244b6ac9f85039afdf8c9d56c5a31ec3d (diff)
downloadsdl_core-c7be7148dc7f24d7eb19899f9ea16a159790afe4.tar.gz
Modify resumption to use plugins but not application manager
Diffstat (limited to 'src/components/application_manager/src/resumption')
-rw-r--r--src/components/application_manager/src/resumption/resume_ctrl_impl.cc13
-rw-r--r--src/components/application_manager/src/resumption/resumption_data.cc10
2 files changed, 5 insertions, 18 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 157aff7704..1f911af82b 100644
--- a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
+++ b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
@@ -624,17 +624,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->PorcessResumption(subscriptions);
}
}
}
diff --git a/src/components/application_manager/src/resumption/resumption_data.cc b/src/components/application_manager/src/resumption/resumption_data.cc
index bd5bdbddab..e1b86ae772 100644
--- a/src/components/application_manager/src/resumption/resumption_data.cc
+++ b/src/components/application_manager/src/resumption/resumption_data.cc
@@ -162,13 +162,9 @@ smart_objects::SmartObject ResumptionData::GetApplicationSubscriptions(
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;
}