Alarm: fix snooze by adding new API
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 16 Sep 2016 15:44:52 +0000 (17:44 +0200)
committerr.czerski <r.czerski@samsung.com>
Mon, 19 Sep 2016 08:32:05 +0000 (10:32 +0200)
commitad1863c580ce031f494858292a7ba85a3ad017b2
treef47bd4ae602fe22f86c215d6aadd654e91f47629
parentfe03d5e86815cd74885d81f95c3f9a3d83b90a9d
Alarm: fix snooze by adding new API

Add new Dismiss and CanSnooze functions.
CanSnooze informs if snooze can be applied on Alarm. It is
possible when Snooze is enabled for alarm and maximum numer
of snooze attempts hasn't been reached.

Dismiss is a function that resets snooze context for given alarm.
It resets current snooze attempt counter. Is alarm do not support
snooze it does nothing.

Change-Id: I554800d5b004dec3f046cd7d5bf08d65b886b222
clock/inc/Model/Alarm.h
clock/src/Controller/RingController.cpp
clock/src/Model/Alarm.cpp
clock/src/Presenter/RingPresenter.cpp