diff options
author | Elvis Kuliiev <ekuliiev@luxoft.com> | 2018-05-13 22:14:41 +0300 |
---|---|---|
committer | Elvis Kuliiev <ekuliiev@luxoft.com> | 2018-05-17 18:00:42 +0300 |
commit | 594be81b947e6554171b43df6e3e5075a39f5bc2 (patch) | |
tree | b60a26391704363ff08f8cb71c37d3dd9c763c9f /src/components/application_manager/include/application_manager/state_controller_impl.h | |
parent | af7276be0f71b4ee3a1f9447d453b4478221ae3d (diff) | |
download | sdl_core-594be81b947e6554171b43df6e3e5075a39f5bc2.tar.gz |
Fix HMI state resolver according to requirments of 'Mobile Projection Phase 2'
Diffstat (limited to 'src/components/application_manager/include/application_manager/state_controller_impl.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/state_controller_impl.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/components/application_manager/include/application_manager/state_controller_impl.h b/src/components/application_manager/include/application_manager/state_controller_impl.h index 6e199cb5c5..9ecb7bfea9 100644 --- a/src/components/application_manager/include/application_manager/state_controller_impl.h +++ b/src/components/application_manager/include/application_manager/state_controller_impl.h @@ -191,11 +191,11 @@ class StateControllerImpl : public event_engine::EventObserver, * Move other application to HmiStates if applied moved to FULL or LIMITED */ struct HmiLevelConflictResolver { - ApplicationSharedPtr applied_; - HmiStatePtr state_; + const ApplicationSharedPtr applied_; + const HmiStatePtr state_; StateControllerImpl* state_ctrl_; - HmiLevelConflictResolver(ApplicationSharedPtr app, - HmiStatePtr state, + HmiLevelConflictResolver(const ApplicationSharedPtr app, + const HmiStatePtr state, StateControllerImpl* state_ctrl) : applied_(app), state_(state), state_ctrl_(state_ctrl) {} void operator()(ApplicationSharedPtr to_resolve); @@ -361,15 +361,6 @@ class StateControllerImpl : public event_engine::EventObserver, void SetupRegularHmiState(ApplicationSharedPtr app, HmiStatePtr state); /** - * @brief IsSameAppType checks if apps has same types - * @param app1 - * @param app2 - * @return true if aps have same types, otherwise return false - */ - bool IsSameAppType(ApplicationConstSharedPtr app1, - ApplicationConstSharedPtr app2); - - /** * @brief SetupRegularHmiState set regular HMI State without * resolving conflicts and ActivateApp request * @param app application @@ -441,7 +432,7 @@ class StateControllerImpl : public event_engine::EventObserver, typedef std::list<HmiState::StateID> StateIDList; StateIDList active_states_; mutable sync_primitives::Lock active_states_lock_; - std::map<uint32_t, HmiStatePtr> waiting_for_activate; + std::map<uint32_t, HmiStatePtr> waiting_for_activate_; ApplicationManager& app_mngr_; }; } |