Implementation of ScreenSwitchProvider 09/138909/12
authorLukasz Wlazly <l.wlazly@partner.samsung.com>
Thu, 13 Jul 2017 14:03:02 +0000 (16:03 +0200)
committerLukasz Wlazly <l.wlazly@partner.samsung.com>
Fri, 21 Jul 2017 12:35:21 +0000 (14:35 +0200)
commit839d8f8b77bf32d64052b3137d51cdd18798a7c8
treee7a0e699da7bc8b5b43432bae6984bc8b6a9b6d6
parentc2ab78c57ab788ab13fe24e5f7b2e2d4d15b5923
Implementation of ScreenSwitchProvider

This patch also moves responsibility of notifying Switch observers to base class SwitchProvider
and adds mechanism of timers depending on vconf configuration.

Values saved in vconf are:
    1. minimal time of interaction required to process switch
    2. interval between switch interactions
    3. auto repetition time

After acceptance of general idea suitable tests will be provided.

Change-Id: If7f92c442a3cc41e1019cd6e06555d8d0b3fc918
12 files changed:
src/AccessoriesSwitchProvider.cpp
src/AccessoriesSwitchProvider.hpp
src/CMakeLists.txt
src/ScreenSwitchProvider.cpp [new file with mode: 0644]
src/ScreenSwitchProvider.hpp [new file with mode: 0644]
src/SwitchInteractionManager.cpp [new file with mode: 0644]
src/SwitchInteractionManager.hpp [new file with mode: 0644]
src/SwitchManager.cpp
src/SwitchProvider.cpp
src/SwitchProvider.hpp
src/main.cpp
tests/ConfigurationTests.hpp