summaryrefslogtreecommitdiff
path: root/src/components/include/policy
diff options
context:
space:
mode:
authorIvo Stoilov (GitHub) <istoilov@luxoft.com>2017-02-15 18:32:09 +0200
committerokozlovlux <okozlov@luxoft.com>2017-05-17 19:27:10 +0300
commitf175409c5e370b6c5c8b67ec72214990a9268673 (patch)
tree1735dbb7f2d84939bef562a09413c641a0c1ff27 /src/components/include/policy
parent458fa67468b2c10a7f8eb18277a83eb90c2f8004 (diff)
downloadsdl_core-f175409c5e370b6c5c8b67ec72214990a9268673.tar.gz
Add new external UCS-related params in PTU, PreloadedPT, SnapshotPT
- added perstistence for external user consent status - fixed failed UTs
Diffstat (limited to 'src/components/include/policy')
-rw-r--r--src/components/include/policy/policy_external/policy/policy_listener.h8
-rw-r--r--src/components/include/policy/policy_external/policy/policy_manager.h13
2 files changed, 21 insertions, 0 deletions
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 a5c5338265..de9d6eb8ef 100644
--- a/src/components/include/policy/policy_external/policy/policy_listener.h
+++ b/src/components/include/policy/policy_external/policy/policy_listener.h
@@ -113,6 +113,14 @@ class PolicyListener {
* @param certificate_data the value of the updated field.
*/
virtual void OnCertificateUpdated(const std::string& certificate_data) = 0;
+
+ /**
+ * @brief Collects currently registered applications ids linked to their
+ * device id
+ * @return Collection of device_id-to-app_id links
+ */
+ virtual void GetRegisteredLinks(
+ std::map<std::string, std::string>& out_links) const = 0;
};
} // namespace policy
#endif // SRC_COMPONENTS_INCLUDE_POLICY_POLICY_LISTENER_H_
diff --git a/src/components/include/policy/policy_external/policy/policy_manager.h b/src/components/include/policy/policy_external/policy/policy_manager.h
index 74a3d36c4f..86f3124ca7 100644
--- a/src/components/include/policy/policy_external/policy/policy_manager.h
+++ b/src/components/include/policy/policy_external/policy/policy_manager.h
@@ -485,6 +485,19 @@ class PolicyManager : public usage_statistics::StatisticsManager {
virtual void SetDecryptedCertificate(const std::string& certificate) = 0;
virtual const PolicySettings& get_settings() const = 0;
+ /**
+ * @brief Saves customer connectivity settings status
+ * @param status ExternalConsent status
+ * @return true if succeeded, otherwise - false
+ */
+ virtual bool SetExternalConsentStatus(
+ const ExternalConsentStatus& status) = 0;
+
+ /**
+ * @brief Gets customer connectivity settings status
+ * @return external consent status
+ */
+ virtual ExternalConsentStatus GetExternalConsentStatus() = 0;
/**
* @brief Finds the next URL that must be sent on OnSystemRequest retry