diff options
Diffstat (limited to 'src/components/policy/policy_regular/include/policy/policy_manager_impl.h')
-rw-r--r-- | src/components/policy/policy_regular/include/policy/policy_manager_impl.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h index 192de6cd34..5b90a32ae7 100644 --- a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h +++ b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h @@ -625,6 +625,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 @@ -1048,6 +1054,11 @@ class PolicyManagerImpl : public PolicyManager { */ void OnPTUIterationTimeout(); + /** + * @brief Check that application for PTU more than zero + */ + bool HasApplicationForPTU(); + private: /** * @brief Get resulting RPCs permissions for application which started on @@ -1146,6 +1157,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 */ sync_primitives::Lock retry_sequence_lock_; @@ -1189,6 +1205,16 @@ class PolicyManagerImpl : public PolicyManager { */ bool trigger_ptu_; + /** + * @brief Flag for notifying that PTU was requested + */ + bool ptu_requested_; + + /** + * @brief Last registered application id on mobile + */ + std::string last_registered_app_id_; + typedef std::list<std::pair<std::string, AppPoliciesValueType> > PendingAppPolicyActionsList; |