clock: modify alarms creation/edit logic. 12/101312/6
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Wed, 30 Nov 2016 16:35:22 +0000 (17:35 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 2 Dec 2016 14:46:48 +0000 (06:46 -0800)
commit3487e11fa306ce80e274071e1ba35ba58ffef28d
treef6694a8da1a44065b3ac787cf8d162d128a7b8ba
parent673a73d1954079cb47375cbdf1889c0646f3dec1
clock: modify alarms creation/edit logic.

Implement logic included in UX guideline page 13.

Now when alarm is added app first checks if alarm with
same time and name exists, if yes it updates it accordingly,
if no - creates new alarm.

When alarm is modified, app first checks if alarm with
same name and time exists, if yes it updates it and deletes
edited alarm, if no - updates existing alarm.

Change-Id: Ie179d35de895ac702898202ee72fc745165c2d53
12 files changed:
clock/inc/Internal/AlarmProviderFile.h
clock/inc/Model/AlarmProvider.h
clock/inc/Presenter/EditAlarmPresenter.h
clock/inc/Utils/Time.h
clock/inc/View/EditAlarmView.h
clock/res/po/en_US.po
clock/src/Controller/MainController.cpp
clock/src/Model/AlarmProviderFile.cpp
clock/src/Presenter/AlarmPresenter.cpp
clock/src/Presenter/EditAlarmPresenter.cpp
clock/src/Utils/Time.cpp
clock/src/View/EditAlarmView.cpp