From 6442b8adb6b4557d0df437b7517fb2bd4433eb80 Mon Sep 17 00:00:00 2001 From: okozlovlux Date: Fri, 5 May 2017 14:47:02 +0300 Subject: Add missing functionality fo policies Fix failed UTs --- .../policy/policy_external/policy/policy_listener.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/components/include/policy/policy_external/policy/policy_listener.h') diff --git a/src/components/include/policy/policy_external/policy/policy_listener.h b/src/components/include/policy/policy_external/policy/policy_listener.h index 82dd26a6f7..f3388beb95 100644 --- a/src/components/include/policy/policy_external/policy/policy_listener.h +++ b/src/components/include/policy/policy_external/policy/policy_listener.h @@ -52,6 +52,12 @@ class PolicyListener { const Permissions& permissions) = 0; virtual void OnPendingPermissionChange(const std::string& policy_app_id) = 0; virtual void OnUpdateStatusChanged(const std::string&) = 0; + /** + * Gets device ID + * @param policy_app_id + * @return device ID + * @deprecated see std::vector GetDevicesIds(const std::string&) + */ virtual std::string OnCurrentDeviceIdUpdateRequired( const std::string& policy_app_id) = 0; virtual void OnSystemInfoUpdateRequired() = 0; @@ -114,6 +120,14 @@ class PolicyListener { */ virtual void OnCertificateUpdated(const std::string& certificate_data) = 0; + /** + * @brief OnPTUFinishedd the callback which signals PTU has finished + * + * @param ptu_result the result from the PTU - true if successful, + * otherwise false. + */ + virtual void OnPTUFinished(const bool ptu_result) = 0; + /** * @brief Collects currently registered applications ids linked to their * device id -- cgit v1.2.1