summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/policies/policy_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/include/application_manager/policies/policy_handler.h')
-rw-r--r--src/components/application_manager/include/application_manager/policies/policy_handler.h44
1 files changed, 6 insertions, 38 deletions
diff --git a/src/components/application_manager/include/application_manager/policies/policy_handler.h b/src/components/application_manager/include/application_manager/policies/policy_handler.h
index a0fef88b6d..2070554cd8 100644
--- a/src/components/application_manager/include/application_manager/policies/policy_handler.h
+++ b/src/components/application_manager/include/application_manager/policies/policy_handler.h
@@ -110,28 +110,8 @@ class PolicyHandler : public PolicyHandlerInterface,
#else // EXTERNAL_PROPRIETARY_MODE
void OnSnapshotCreated(const BinaryMessage& pt_string,
const PTUIterationType iteration_type) OVERRIDE;
-
- /**
- * @brief Get the next available PTU URL and the associated application for
- * performing the PTU
- * @param iteration_type The iteration type of the PTU.
- * If this is a retry and a retry URL was cached, that URL will be returned
- * @param app_id Filled with the ID of application used to perform the PTU on
- * success
- * @return The next available PTU URL on success, empty string on failure
- */
std::string GetNextUpdateUrl(const PTUIterationType iteration_type,
uint32_t& app_id) OVERRIDE;
-
- /**
- * @brief Update the cached URL and app ID used for policy retries
- * @param app_id The ID of the application to be used for performing PTUs.
- * If 0, the existing cached application will be cleared
- * @param url The URL provided by the HMI to be used for performing PTU
- * retries. If empty, the existing cached URL will be cleared and Core will
- * choose which URLs to use on retry
- */
- void CacheRetryInfo(const uint32_t app_id, const std::string url) OVERRIDE;
#endif // EXTERNAL_PROPRIETARY_MODE
virtual bool GetPriority(const std::string& policy_app_id,
std::string* priority) const OVERRIDE;
@@ -433,28 +413,14 @@ class PolicyHandler : public PolicyHandlerInterface,
*/
void OnSystemError(int code) OVERRIDE;
- /**
- * @brief Chooses and stores random application id to be used for snapshot
- * sending considering HMI level
- * @param iteration_type The iteration type of the request. If RetryIteration,
- * the previously chosen app ID (via ChoosePTUApplication or CacheRetryInfo)
- * will be returned if available
- * @return Application id or 0, if there are no suitable applications
- */
+#ifndef EXTERNAL_PROPRIETARY_MODE
uint32_t ChoosePTUApplication(
const PTUIterationType iteration_type =
PTUIterationType::DefaultIteration) OVERRIDE;
+ void CacheRetryInfo(const uint32_t app_id, const std::string url) OVERRIDE;
+#endif // EXTERNAL_PROPRIETARY_MODE
- /**
- * @brief Retrieve potential application id to be used for snapshot sending
- * @param iteration_type The iteration type of the request. If RetryIteration,
- * the previously chosen app ID (via ChoosePTUApplication or CacheRetryInfo)
- * will be returned if available
- * @return Application id or 0, if there are no suitable applications
- */
- uint32_t GetAppIdForSending(
- const PTUIterationType iteration_type =
- PTUIterationType::DefaultIteration) const OVERRIDE;
+ uint32_t GetAppIdForSending() const OVERRIDE;
/**
* @brief Add application to PTU queue if no application with
@@ -931,9 +897,11 @@ class PolicyHandler : public PolicyHandlerInterface,
std::shared_ptr<PolicyEventObserver> event_observer_;
uint32_t last_activated_app_id_;
+#ifndef EXTERNAL_PROPRIETARY_MODE
// PTU retry information
uint32_t last_ptu_app_id_;
std::string retry_update_url_;
+#endif // EXTERNAL_PROPRIETARY_MODE
/**
* @brief Contains device handles, which were sent for user consent to HMI