ring implementation
authorKamil Lipiszko <k.lipiszko@samsung.com>
Mon, 5 Sep 2016 12:33:19 +0000 (14:33 +0200)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Fri, 16 Sep 2016 15:22:47 +0000 (17:22 +0200)
commit8bbea35998c5375e34747b16653c11507ea03867
treea06885ca2176b942fc9bb1cc8227e2fefa76268f
parentaee5d9cb7393b4e1f5b027228dbdf693ef1f0609
ring implementation

Ring is the view that shows up on alarm or timer's timeout.
The style of the view depends on the type of the ring. If
ring view was called by alarm it shows the alarm info,
otherwise is called by timer and shows time counter. Ring
is created on app_control request with proper operation set
from the following:

http://tizen.org/appcontrol/operation/alarm
http://tizen.org/appcontrol/operation/timeout

Commit implements:
- ring view with alarm data content or counter,
- ring presenter due to MVP pattern,
- ring model which is created and used only if ring shows up
on timer's call.
- ring controller to create ring presenter, view and model
adjusted to the type of the requested call.

Change-Id: Ice190b3b47c3aa8deb69bf37dd6a7506e1f37bc1
27 files changed:
clock/inc/Common/Defines.h
clock/inc/Controller/RingController.h [new file with mode: 0644]
clock/inc/Model/AlarmProvider.h
clock/inc/Model/Counter.h
clock/inc/Model/Ring.h [new file with mode: 0644]
clock/inc/Model/Timer.h
clock/inc/Presenter/RingPresenter.h [new file with mode: 0644]
clock/inc/Presenter/TimerPresenter.h
clock/inc/Utils/Time.h
clock/inc/View/RingView.h [new file with mode: 0644]
clock/inc/View/TimerView.h
clock/res/edje/Counter.edc
clock/res/edje/Timer.edc
clock/res/edje/ring.edc
clock/src/Clock.cpp
clock/src/Controller/RingController.cpp [new file with mode: 0644]
clock/src/Model/Alarm.cpp
clock/src/Model/AlarmProviderFile.cpp
clock/src/Model/StopWatch.cpp
clock/src/Model/Timer.cpp
clock/src/Presenter/RingPresenter.cpp [new file with mode: 0644]
clock/src/Presenter/TimerPresenter.cpp
clock/src/Utils/Time.cpp
clock/src/View/MainView.cpp
clock/src/View/RingView.cpp [new file with mode: 0644]
clock/src/View/StopWatchView.cpp
clock/src/View/TimerView.cpp