summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <akutsan@luxoft.com>2018-06-13 10:01:31 +0000
committerIra Lytvynenko (GitHub) <ILytvynenko@luxoft.com>2018-06-26 12:01:48 +0300
commitc1381e83fd9673394b7fd84501e4bef96c319e61 (patch)
treeb0e1241eb8c63d25718abb455f5a02045012bb7d
parent68d72d184e0f54eb17f471de13679485e5bfb1d4 (diff)
downloadsdl_core-c1381e83fd9673394b7fd84501e4bef96c319e61.tar.gz
Rename module type to vehicle data type
-rw-r--r--src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/vehicle_info_app_extension.h8
-rw-r--r--src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc24
2 files changed, 16 insertions, 16 deletions
diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/vehicle_info_app_extension.h b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/vehicle_info_app_extension.h
index f3eb9c18b8..727780eaf9 100644
--- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/vehicle_info_app_extension.h
+++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/vehicle_info_app_extension.h
@@ -46,13 +46,13 @@ class VehicleInfoAppExtension : app_mngr::AppExtension {
explicit VehicleInfoAppExtension(app_mngr::AppExtensionUID uid);
virtual ~VehicleInfoAppExtension();
- void subscribeToVehicleInfo(const std::string& moduleType);
- void unsubscribeFromVehicleInfo(const std::string& moduleType);
+ void subscribeToVehicleInfo(const std::string& vehicle_data_type);
+ void unsubscribeFromVehicleInfo(const std::string& vehicle_data_type);
void unsubscribeFromVehicleInfo();
- bool isSubscribedToVehicleInfo(const std::string& moduleType) const;
+ bool isSubscribedToVehicleInfo(const std::string& vehicle_data_type) const;
private:
- std::set<std::string> subscribed_modules_;
+ std::set<std::string> subscribed_data_;
};
}
diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
index c9e354865f..cf7ea808ae 100644
--- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
+++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
@@ -47,28 +47,28 @@ VehicleInfoAppExtension::~VehicleInfoAppExtension() {
}
void VehicleInfoAppExtension::subscribeToVehicleInfo(
- const std::string& moduleType) {
- LOG4CXX_DEBUG(logger_, moduleType);
- subscribed_modules_.insert(moduleType);
+ const std::string& vehicle_data_type) {
+ LOG4CXX_DEBUG(logger_, vehicle_data_type);
+ subscribed_data_.insert(vehicle_data_type);
}
void VehicleInfoAppExtension::unsubscribeFromVehicleInfo(
- const std::string& moduleType) {
- LOG4CXX_DEBUG(logger_, moduleType);
- auto it = subscribed_modules_.find(moduleType);
- if (it != subscribed_modules_.end()) {
- subscribed_modules_.erase(it);
+ const std::string& vehicle_data_type) {
+ LOG4CXX_DEBUG(logger_, vehicle_data_type);
+ auto it = subscribed_data_.find(vehicle_data_type);
+ if (it != subscribed_data_.end()) {
+ subscribed_data_.erase(it);
}
}
void VehicleInfoAppExtension::unsubscribeFromVehicleInfo() {
LOG4CXX_AUTO_TRACE(logger_);
- subscribed_modules_.clear();
+ subscribed_data_.clear();
}
bool VehicleInfoAppExtension::isSubscribedToVehicleInfo(
- const std::string& moduleType) const {
- LOG4CXX_DEBUG(logger_, moduleType);
- return subscribed_modules_.find(moduleType) != subscribed_modules_.end();
+ const std::string& vehicle_data_type) const {
+ LOG4CXX_DEBUG(logger_, vehicle_data_type);
+ return subscribed_data_.find(vehicle_data_type) != subscribed_data_.end();
}
}