summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands
diff options
context:
space:
mode:
authorAndrey Oleynik <aoleynik@luxoft.com>2016-12-13 17:44:31 +0200
committerAndrey Oleynik <aoleynik@luxoft.com>2016-12-13 17:51:42 +0200
commit751fee5c21355846aaf8a437b3516cb933b69f2e (patch)
tree7fc3c5836d71b8b927f64c38f11add771bb1813f /src/components/application_manager/src/commands
parent0c0d6658ec7ab540bacbdbf225ebf682fd764e9e (diff)
downloadsdl_core-751fee5c21355846aaf8a437b3516cb933b69f2e.tar.gz
Renames EXTENDED_POLICY definition to PROPRIETARY_MODE to avoid confusion
Currently there are three modes HTTP, PROPRIETARY, EXTERNAL_PROPRIETARY for option named like EXTENDED_POLICY, so in order to avoid confusion with option name definition has been renamed. Relates-to: APPLINK-25462
Diffstat (limited to 'src/components/application_manager/src/commands')
-rw-r--r--src/components/application_manager/src/commands/hmi/get_urls.cc8
-rw-r--r--src/components/application_manager/src/commands/hmi/on_received_policy_update.cc2
-rw-r--r--src/components/application_manager/src/commands/hmi/sdl_policy_update.cc2
-rw-r--r--src/components/application_manager/src/commands/mobile/on_system_request_notification.cc8
4 files changed, 10 insertions, 10 deletions
diff --git a/src/components/application_manager/src/commands/hmi/get_urls.cc b/src/components/application_manager/src/commands/hmi/get_urls.cc
index 1285808fbf..64597a5653 100644
--- a/src/components/application_manager/src/commands/hmi/get_urls.cc
+++ b/src/components/application_manager/src/commands/hmi/get_urls.cc
@@ -67,14 +67,14 @@ void GetUrls::Run() {
return;
}
-#ifdef EXTENDED_POLICY
+#ifdef PROPRIETARY_MODE
const uint32_t policy_service = 7u;
if (policy_service == service_to_check) {
ProcessPolicyServiceURLs(endpoints);
return;
}
-#endif // EXTENDED_POLICY
+#endif // PROPRIETARY_MODE
ProcessServiceURLs(endpoints);
}
@@ -123,7 +123,7 @@ void GetUrls::SendResponseToHMI(hmi_apis::Common_Result::eType result) {
application_manager_.ManageHMICommand(message_);
}
-#ifdef EXTENDED_POLICY
+#ifdef PROPRIETARY_MODE
struct PolicyAppIdComparator {
PolicyAppIdComparator(const std::string& policy_app_id)
: policy_app_id_(policy_app_id) {}
@@ -219,7 +219,7 @@ void GetUrls::ProcessPolicyServiceURLs(const policy::EndpointUrls& endpoints) {
SendResponseToHMI(Common_Result::SUCCESS);
return;
}
-#endif // EXTENDED_POLICY
+#endif // PROPRIETARY_MODE
} // namespace commands
} // namespace application_manager
diff --git a/src/components/application_manager/src/commands/hmi/on_received_policy_update.cc b/src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
index 9d3dde0f84..5d03e21b6f 100644
--- a/src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
+++ b/src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
@@ -47,7 +47,7 @@ OnReceivedPolicyUpdate::~OnReceivedPolicyUpdate() {}
void OnReceivedPolicyUpdate::Run() {
LOG4CXX_AUTO_TRACE(logger_);
-#if defined(EXTENDED_POLICY) || defined(EXTERNAL_PROPRIETARY)
+#if defined(PROPRIETARY_MODE) || defined(EXTERNAL_PROPRIETARY)
const std::string& file_path =
(*message_)[strings::msg_params][hmi_notification::policyfile].asString();
policy::BinaryMessage file_content;
diff --git a/src/components/application_manager/src/commands/hmi/sdl_policy_update.cc b/src/components/application_manager/src/commands/hmi/sdl_policy_update.cc
index 6c3001f7a5..27e1cbd422 100644
--- a/src/components/application_manager/src/commands/hmi/sdl_policy_update.cc
+++ b/src/components/application_manager/src/commands/hmi/sdl_policy_update.cc
@@ -44,7 +44,7 @@ SDLPolicyUpdate::~SDLPolicyUpdate() {}
void SDLPolicyUpdate::Run() {
LOG4CXX_AUTO_TRACE(logger_);
-#if defined(EXTENDED_POLICY) || defined(EXTERNAL_PROPRIETARY)
+#if defined(PROPRIETARY_MODE) || defined(EXTERNAL_PROPRIETARY)
SendRequest();
#else
LOG4CXX_WARN(logger_,
diff --git a/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc b/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc
index 3b7142fa46..58fd744309 100644
--- a/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc
+++ b/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc
@@ -84,7 +84,7 @@ void OnSystemRequestNotification::Run() {
Also in Genivi SDL we don't save the PT to file - we put it directly in
binary_data */
-#ifdef EXTENDED_POLICY
+#ifdef PROPRIETARY_MODE
const std::string filename =
(*message_)[strings::msg_params][strings::file_name].asString();
@@ -92,7 +92,7 @@ void OnSystemRequestNotification::Run() {
file_system::ReadBinaryFile(filename, binary_data);
AddHeader(binary_data);
(*message_)[strings::params][strings::binary_data] = binary_data;
-#endif // EXTENDED_POLICY
+#endif // PROPRIETARY_MODE
(*message_)[strings::msg_params][strings::file_type] = FileType::JSON;
} else if (RequestType::HTTP == request_type) {
(*message_)[strings::msg_params][strings::file_type] = FileType::BINARY;
@@ -101,7 +101,7 @@ void OnSystemRequestNotification::Run() {
SendNotification();
}
-#ifdef EXTENDED_POLICY
+#ifdef PROPRIETARY_MODE
void OnSystemRequestNotification::AddHeader(BinaryMessage& message) const {
LOG4CXX_AUTO_TRACE(logger_);
const int timeout = application_manager_.GetPolicyHandler().TimeoutExchange();
@@ -184,7 +184,7 @@ size_t OnSystemRequestNotification::ParsePTString(
pt_string = result;
return result_length;
}
-#endif // EXTENDED_POLICY
+#endif // PROPRIETARY_MODE
} // namespace mobile