diff options
author | JackLivio <jack@livio.io> | 2019-03-01 15:00:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 15:00:38 -0500 |
commit | fc9f7d13c0e03caee9e196a636815e791213ad66 (patch) | |
tree | 1ab8631036aaa75a335797e9efae07eba0413e05 /src/components/application_manager/include/application_manager/helpers/application_helper.h | |
parent | bc6cec5d29ff36b7092112dc1ea69ccd4d92acc3 (diff) | |
download | sdl_core-fc9f7d13c0e03caee9e196a636815e791213ad66.tar.gz |
Get Icon URL Request (#2823)
* Fix regex command for reading paths post port number
* Add Icon URL to policies
* Create Icon Request and save to icon folder.
* Fixes for get icon url
* Fix unit tests
* Send Icon_url request after PTU
* Address comments
* Address Comments
Diffstat (limited to 'src/components/application_manager/include/application_manager/helpers/application_helper.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/helpers/application_helper.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/helpers/application_helper.h b/src/components/application_manager/include/application_manager/helpers/application_helper.h index 145bef659e..18267c9e7f 100644 --- a/src/components/application_manager/include/application_manager/helpers/application_helper.h +++ b/src/components/application_manager/include/application_manager/helpers/application_helper.h @@ -57,6 +57,18 @@ ApplicationSharedPtr FindApp(DataAccessor<ApplicationSet> accessor, return app; } +template <class UnaryPredicate> +ApplicationSharedPtr FindPendingApp( + DataAccessor<AppsWaitRegistrationSet> accessor, UnaryPredicate finder) { + AppsWaitRegistrationSet::iterator it = std::find_if( + accessor.GetData().begin(), accessor.GetData().end(), finder); + if (accessor.GetData().end() == it) { + return ApplicationSharedPtr(); + } + ApplicationSharedPtr app = *it; + return app; +} + /** * Helper function for lookup through applications list and returning all * applications satisfying predicate logic |