diff options
author | Ivo Stoilov (GitHub) <istoilov@luxoft.com> | 2017-02-15 18:32:09 +0200 |
---|---|---|
committer | okozlovlux <okozlov@luxoft.com> | 2017-05-17 19:27:10 +0300 |
commit | f175409c5e370b6c5c8b67ec72214990a9268673 (patch) | |
tree | 1735dbb7f2d84939bef562a09413c641a0c1ff27 /src/components/include/policy | |
parent | 458fa67468b2c10a7f8eb18277a83eb90c2f8004 (diff) | |
download | sdl_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.h | 8 | ||||
-rw-r--r-- | src/components/include/policy/policy_external/policy/policy_manager.h | 13 |
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 |