SwitchProvider refactor 50/140750/4
authorLukasz Wlazly <l.wlazly@partner.samsung.com>
Wed, 26 Jul 2017 07:35:55 +0000 (09:35 +0200)
committerLukasz Wlazly <l.wlazly@partner.samsung.com>
Wed, 26 Jul 2017 13:40:15 +0000 (15:40 +0200)
commit026a31ce2dbeaf888266f1a114118eacc08a4ebe
tree245711d3996e82b0c0a31c4e6c89720cc56772a5
parentfd107ece8ad61907dd731b197b9ab7a55d4eb6da
SwitchProvider refactor

This patch contains two refactor works:
1. SwitchCollection has been moved to base class, thus implementation of findAllSwitches
    and findSwitchById can be provided in base class now
2. Callback functions in ScreenSwitchProvider are now minimalistic
3. Change in SwitchInteractionManager: any new interaction from any provider during currently proceeded stops the old one

Change-Id: I2966cafe81ecb735a55237efad62b155adce2a71
src/AccessoriesSwitchProvider.cpp
src/AccessoriesSwitchProvider.hpp
src/ScreenSwitchProvider.cpp
src/ScreenSwitchProvider.hpp
src/SwitchInteractionManager.cpp
src/SwitchInteractionManager.hpp
src/SwitchProvider.cpp
src/SwitchProvider.hpp