diff options
author | igapchuck <igapchuck@luxoft.com> | 2019-06-27 14:23:15 +0300 |
---|---|---|
committer | igapchuck <igapchuck@luxoft.com> | 2019-07-24 10:26:36 +0300 |
commit | 2187d3b081785547d0a80555ea4828adf19ee2c6 (patch) | |
tree | 60e44ba37618abe5de81c3e901083309b3ead3f5 /src/components/include/policy | |
parent | c1cced8d10c5fa8b509a7502a5873360fa66aca5 (diff) | |
download | sdl_core-2187d3b081785547d0a80555ea4828adf19ee2c6.tar.gz |
Add lock_screen_dismissal_warning to Policy Interface
Diffstat (limited to 'src/components/include/policy')
-rw-r--r-- | src/components/include/policy/policy_external/policy/policy_manager.h | 9 | ||||
-rw-r--r-- | src/components/include/policy/policy_regular/policy/policy_manager.h | 8 |
2 files changed, 17 insertions, 0 deletions
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 6a80e6615e..aecc4b607a 100644 --- a/src/components/include/policy/policy_external/policy/policy_manager.h +++ b/src/components/include/policy/policy_external/policy/policy_manager.h @@ -175,6 +175,15 @@ class PolicyManager : public usage_statistics::StatisticsManager { const = 0; /** + * @brief Returns lock screen warning message. In case when specified language + * is absent in policy table will be returned message on default language + * ("en-us"). Otherwise returns uninitialized boost::optional<std::string> + * @return std::string Lock screen warning message + */ + virtual const boost::optional<std::string> LockScreenDismissalWarningMessage( + const std::string& language) const = 0; + + /** * @brief Increments counter of ignition cycles */ virtual void IncrementIgnitionCycles() = 0; diff --git a/src/components/include/policy/policy_regular/policy/policy_manager.h b/src/components/include/policy/policy_regular/policy/policy_manager.h index eee7986948..713f71dcdb 100644 --- a/src/components/include/policy/policy_regular/policy/policy_manager.h +++ b/src/components/include/policy/policy_regular/policy/policy_manager.h @@ -176,6 +176,14 @@ class PolicyManager : public usage_statistics::StatisticsManager { const = 0; /** + * @brief Returns lock screen warning message + * @param language_code Specific language for which need message + * @return std::string Lock screen warning message + */ + virtual const boost::optional<std::string> LockScreenDismissalWarningMessage( + const std::string& language) const = 0; + + /** * @brief Increments counter of ignition cycles */ virtual void IncrementIgnitionCycles() = 0; |