summaryrefslogtreecommitdiff
path: root/src/components/include/application_manager
diff options
context:
space:
mode:
authorAlexander Kutsan <akutsan@luxoft.com>2017-01-16 15:42:42 +0200
committerAlex Kutsan <akutsan@luxoft.com>2017-01-17 12:38:47 +0200
commite164cc18f5044ebc3f294b2452ec69e9ec1097e7 (patch)
treef4c64f5887d5910ec73de3dd3c7ef8e077f3ccbf /src/components/include/application_manager
parent787736fe317125e77d9a422c86169c17e1d3a678 (diff)
downloadsdl_core-e164cc18f5044ebc3f294b2452ec69e9ec1097e7.tar.gz
Remove nitification update_manager on AddApplication
AddApplication will return function that will sen d appropriate notifications on call Relates issue : APPLINK-31436
Diffstat (limited to 'src/components/include/application_manager')
-rw-r--r--src/components/include/application_manager/policies/policy_handler_interface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/include/application_manager/policies/policy_handler_interface.h b/src/components/include/application_manager/policies/policy_handler_interface.h
index 8f34fa9ae5..e1623a92c3 100644
--- a/src/components/include/application_manager/policies/policy_handler_interface.h
+++ b/src/components/include/application_manager/policies/policy_handler_interface.h
@@ -45,8 +45,11 @@
#include "utils/custom_string.h"
#include "policy/policy_settings.h"
#include "smart_objects/smart_object.h"
+#include "utils/callable.h"
namespace policy {
+typedef utils::SharedPtr<utils::Callable> StatusNotifier;
+
class PolicyHandlerInterface {
public:
virtual ~PolicyHandlerInterface() {}
@@ -306,8 +309,9 @@ class PolicyHandlerInterface {
* @brief Allows to add new or update existed application during
* registration process
* @param application_id The policy aplication id.
+ * @return function that will notify update manager about new application
*/
- virtual void AddApplication(const std::string& application_id) = 0;
+ virtual StatusNotifier AddApplication(const std::string& application_id) = 0;
/**
* Checks whether application is revoked