summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/include/policy/policy_manager_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/policy/policy_external/include/policy/policy_manager_impl.h')
-rw-r--r--src/components/policy/policy_external/include/policy/policy_manager_impl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/include/policy/policy_manager_impl.h b/src/components/policy/policy_external/include/policy/policy_manager_impl.h
index ce344d576a..d244a2c0f5 100644
--- a/src/components/policy/policy_external/include/policy/policy_manager_impl.h
+++ b/src/components/policy/policy_external/include/policy/policy_manager_impl.h
@@ -609,6 +609,12 @@ class PolicyManagerImpl : public PolicyManager {
void OnAppsSearchCompleted(const bool trigger_ptu) OVERRIDE;
/**
+ * @brief Change applicatios count ready for PTU
+ * @param new_app_count new applications count for PTU
+ */
+ void OnChangeApplicationCount(const uint32_t new_app_count) OVERRIDE;
+
+ /**
* @brief Get state of request types for given application
* @param policy_app_id Unique application id
* @return request type state
@@ -1097,6 +1103,11 @@ class PolicyManagerImpl : public PolicyManager {
policy_table::PolicyTableType type) const;
/**
+ * @brief Check that application for PTU more than zero
+ */
+ bool HasApplicationForPTU();
+
+ /**
* @brief Get resulting RPCs permissions for application which started on
* specific device
* @param device_id Device id
@@ -1308,6 +1319,11 @@ class PolicyManagerImpl : public PolicyManager {
uint32_t retry_sequence_index_;
/**
+ * @brief Count application ready for PTU
+ */
+ uint32_t count_application_;
+
+ /**
* @brief Lock for guarding retry sequence
*/
mutable sync_primitives::Lock retry_sequence_lock_;
@@ -1347,6 +1363,11 @@ class PolicyManagerImpl : public PolicyManager {
bool trigger_ptu_;
/**
+ * @brief Flag for notifying that PTU was requested
+ */
+ bool ptu_requested_;
+
+ /**
* @brief Flag that indicates whether a PTU sequence (including retries) is in
* progress
*/