summaryrefslogtreecommitdiff
path: root/src/components/include/policy/policy_external/policy
diff options
context:
space:
mode:
authorAlexander <akutsan@luxoft.com>2018-12-17 17:54:58 +0000
committerigapchuck <igapchuck@luxoft.com>2019-07-24 10:26:36 +0300
commit4f46c006c75c79adefa6071bbca8d8b3eeb6135a (patch)
tree4d0908f6e0f3fdfb3e96fc24df5f1a588b36aceb /src/components/include/policy/policy_external/policy
parentcba71653afd3ee68ae97b47505391db821aaac8d (diff)
downloadsdl_core-4f46c006c75c79adefa6071bbca8d8b3eeb6135a.tar.gz
Add lock_screen_dismissal_enabled to Policy Interface
Removed redundant comments of overridden functions
Diffstat (limited to 'src/components/include/policy/policy_external/policy')
-rw-r--r--src/components/include/policy/policy_external/policy/policy_listener.h6
-rw-r--r--src/components/include/policy/policy_external/policy/policy_manager.h10
2 files changed, 16 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 8299d019f5..c64a6d5496 100644
--- a/src/components/include/policy/policy_external/policy/policy_listener.h
+++ b/src/components/include/policy/policy_external/policy/policy_listener.h
@@ -175,6 +175,12 @@ class PolicyListener {
virtual void OnUpdateHMIStatus(const std::string& device_id,
const std::string& policy_app_id,
const std::string& hmi_level) = 0;
+
+ /**
+ * @brief Notify Connected mobile apps about changing state of
+ * LockScreenDismissal
+ */
+ virtual void OnLockScreenDismissalStateChanged() = 0;
};
} // namespace policy
#endif // SRC_COMPONENTS_INCLUDE_POLICY_POLICY_EXTERNAL_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 331b579365..6a80e6615e 100644
--- a/src/components/include/policy/policy_external/policy/policy_manager.h
+++ b/src/components/include/policy/policy_external/policy/policy_manager.h
@@ -36,6 +36,7 @@
#include <vector>
#include "utils/callable.h"
+#include "utils/optional.h"
#include "policy/access_remote.h"
#include "policy/cache_manager_interface.h"
@@ -165,6 +166,15 @@ class PolicyManager : public usage_statistics::StatisticsManager {
virtual void KmsChanged(int kilometers) = 0;
/**
+ * @brief Returns state of the lock screen that could be able to be dismissed
+ * while connected to SDL, allowing users the ability to interact with the
+ * app.
+ * @return bool True if lock screen can be dismissed.
+ */
+ virtual const boost::optional<bool> LockScreenDismissalEnabledState()
+ const = 0;
+
+ /**
* @brief Increments counter of ignition cycles
*/
virtual void IncrementIgnitionCycles() = 0;