diff options
author | Alexander Kutsan <akutsan@luxoft.com> | 2017-01-16 15:42:42 +0200 |
---|---|---|
committer | Alex Kutsan <akutsan@luxoft.com> | 2017-01-17 12:38:47 +0200 |
commit | e164cc18f5044ebc3f294b2452ec69e9ec1097e7 (patch) | |
tree | f4c64f5887d5910ec73de3dd3c7ef8e077f3ccbf /src/components/include/policy/policy_external/policy/policy_manager.h | |
parent | 787736fe317125e77d9a422c86169c17e1d3a678 (diff) | |
download | sdl_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/policy/policy_external/policy/policy_manager.h')
-rw-r--r-- | src/components/include/policy/policy_external/policy/policy_manager.h | 6 |
1 files changed, 5 insertions, 1 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 c587a00111..7d5bbb5e52 100644 --- a/src/components/include/policy/policy_external/policy/policy_manager.h +++ b/src/components/include/policy/policy_external/policy/policy_manager.h @@ -35,12 +35,15 @@ #include <vector> +#include "utils/callable.h" + #include "policy/policy_types.h" #include "policy/policy_listener.h" #include "usage_statistics/statistics_manager.h" namespace policy { class PolicySettings; +typedef utils::SharedPtr<utils::Callable> StatusNotifier; class PolicyManager : public usage_statistics::StatisticsManager { public: @@ -354,8 +357,9 @@ class PolicyManager : public usage_statistics::StatisticsManager { * @brief Adds, application to the db or update existed one * run PTU if policy update is necessary for application. * @param Application id assigned by Ford to the application + * @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; /** * @brief Removes unpaired device records and related records from DB |