profile/mobile/apps/native/clock.git
8 years agoMerge "timer: create entry focus chain" into tizen
Radoslaw Czerski [Fri, 7 Oct 2016 11:39:46 +0000 (04:39 -0700)]
Merge "timer: create entry focus chain" into tizen

8 years agotimer: create entry focus chain 01/90601/6
Kamil Lipiszko [Sat, 1 Oct 2016 07:50:32 +0000 (09:50 +0200)]
timer: create entry focus chain

Creates entry focus chain to provide focus changing when
current entry has already two valid digits set.

Change-Id: I973891abc7a5070906ee9e308a92c92f13567955

8 years agomanifest: remove invalid privilege 87/91187/2
Lukasz Stanislawski [Thu, 6 Oct 2016 07:20:00 +0000 (09:20 +0200)]
manifest: remove invalid privilege

Change-Id: I86d15bbc1bdd76ec45a4604d33e5d09527ef5e7f

8 years agoutils: rename log.h => Log.h, remove redundant file 78/90378/2
Lukasz Stanislawski [Thu, 29 Sep 2016 14:37:03 +0000 (16:37 +0200)]
utils: rename log.h => Log.h, remove redundant file

Change-Id: I0c0e5461b1ad6d2a28831fc748f5eb71ce2bfa7d

8 years agoAdd clock-test project (attempt 2) 31/90331/4
Lukasz Stanislawski [Fri, 9 Sep 2016 14:00:41 +0000 (16:00 +0200)]
Add clock-test project (attempt 2)

Tizen Studio SDK do not contain gmock library. Moreover it contains
only outdated version of google's testing framework (gtest).

This patch adds compiled gtest and gmock dependencies to avoid
problems with SDK configuration. Libraries are compiled for
arm and x86 architectures.

Due to problems with CLI configuration, currently test projects
can be only be compiled with Tizen Studio.

Change-Id: Id403b0798d2e2731494f29947ddc10d15815fda9

8 years agoworldclock: saving and loading locations list with preferences API. 56/90356/5
Radoslaw Czerski [Tue, 4 Oct 2016 13:26:02 +0000 (15:26 +0200)]
worldclock: saving and loading locations list with preferences API.

Change-Id: Ic51139bba2e1b2e8b236bb36ed0b7e4cdfa85951
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoworldclock: "Empty List" label enabled. 21/90321/4
Radoslaw Czerski [Fri, 30 Sep 2016 13:29:37 +0000 (15:29 +0200)]
worldclock: "Empty List" label enabled.

Change-Id: Ia6265dcdba755992b86f7f4beef7358660fcba96
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoworldclock: "More" button handled. 20/90320/5
Radoslaw Czerski [Mon, 3 Oct 2016 11:16:15 +0000 (13:16 +0200)]
worldclock: "More" button handled.

Popup with "Delete" and "Reorder" items
shown after click "More" button.

Change-Id: I1f9d6b89efcf755cdaedcce90bf7458ae9820b88
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoutils: toast popup implementation 33/90533/3
Kamil Lipiszko [Wed, 21 Sep 2016 09:32:35 +0000 (11:32 +0200)]
utils: toast popup implementation

Change-Id: I686649735e9beb850d4c6001ed2a2aea877b4a2b

8 years agoMerge "lap time round fix" into tizen
Lukasz Stanislawski [Mon, 3 Oct 2016 10:37:38 +0000 (03:37 -0700)]
Merge "lap time round fix" into tizen

8 years agoworldclock: adding new Location to custom list implemented. 75/90275/5
Radoslaw Czerski [Fri, 30 Sep 2016 13:25:25 +0000 (15:25 +0200)]
worldclock: adding new Location to custom list implemented.

Change-Id: Icf1997a5770c846b94da0bcb17121c96cf4dc797
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agomaincontroller: move all views, models and presenters to controller. 73/90173/4
Radoslaw Czerski [Mon, 26 Sep 2016 13:14:03 +0000 (15:14 +0200)]
maincontroller: move all views, models and presenters to controller.

Objects deletion added.

Change-Id: Icd00dcdd41e8da6a2deeea2de4a9c933277dabba
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoworldclock: implement MVP pattern. 72/90172/4
Radoslaw Czerski [Fri, 30 Sep 2016 13:07:19 +0000 (15:07 +0200)]
worldclock: implement MVP pattern.

Change-Id: I318885286cc10ca55e293f8f8690ae664de6a070
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoworldclock: custom locations list layout created. 71/90171/3
Radoslaw Czerski [Fri, 30 Sep 2016 12:40:02 +0000 (14:40 +0200)]
worldclock: custom locations list layout created.

The list is connected to Map
which shows timezone related to clicked list item.

MVP patter is not implemented yet(will be added in next commit)

Change-Id: Ia8be8f6ab05371a3bc0218eacd489c9622679e61
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agolap time round fix 27/90527/1
Kamil Lipiszko [Tue, 20 Sep 2016 14:54:42 +0000 (16:54 +0200)]
lap time round fix

Change-Id: I70f9f4704ffb98c0153cfdc5499f78bfb00d88f6

8 years agoremove 'ring' project
Lukasz Stanislawski [Thu, 15 Sep 2016 09:01:26 +0000 (11:01 +0200)]
remove 'ring' project

Change-Id: I80ccb55e2b31e355fc181ec68bd496180fde660f

8 years agoAlarm: fix snooze by adding new API
Lukasz Stanislawski [Fri, 16 Sep 2016 15:44:52 +0000 (17:44 +0200)]
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

8 years agoEditAlarmPresenter: change default alarm values
Lukasz Stanislawski [Fri, 16 Sep 2016 15:13:41 +0000 (17:13 +0200)]
EditAlarmPresenter: change default alarm values

Remove mem leak on alarm creation

Change-Id: Ie63d42cbc6ad514f07051737a24effd766065978

8 years agoremove AlarmProviderStub
Lukasz Stanislawski [Thu, 15 Sep 2016 08:43:39 +0000 (10:43 +0200)]
remove AlarmProviderStub

Stub is not needed anymore so remove it from code base.

Change-Id: Id8861375a39f1de8889d26feb5a1b7d73e0470c7

8 years agoLicense file added.
Lukasz Stanislawski [Mon, 19 Sep 2016 07:31:34 +0000 (09:31 +0200)]
License file added.

Change-Id: I329ee650559636df1a8dbd18f4f715607ce6b216

8 years agoAlarmProviderFile: fix bug with wrong object edition.
Lukasz Stanislawski [Fri, 16 Sep 2016 14:43:13 +0000 (16:43 +0200)]
AlarmProviderFile: fix bug with wrong object edition.

Instead of object from AlarmProviderFile container the temporary
object has been used by the presenters.

Change-Id: I26d61ec52a6ef30e0667450f89adc5bc0432f5fc

8 years agoring implementation
Kamil Lipiszko [Mon, 5 Sep 2016 12:33:19 +0000 (14:33 +0200)]
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

8 years agotimer implementation
Kamil Lipiszko [Wed, 24 Aug 2016 09:44:00 +0000 (11:44 +0200)]
timer implementation

This commit implements the whole timer view, model and presenter
creation procedure due to MVP pattern. The timer is the view that
shows running counter and provides alarm ring after the set time
timeout. The ring alarm is called after the set time and if
countdown was paused and resumed this time is updated. Timer's
view shows the time selector during the edition process and
counter on timer start.

Change-Id: Iba26715081deb7864704a32686e7c3345b75f7a8

8 years agoAlarmView: show "No alarms" text on empty list
Lukasz Stanislawski [Wed, 14 Sep 2016 11:34:52 +0000 (13:34 +0200)]
AlarmView: show "No alarms" text on empty list

Show "No alarms" text when there is no alarms defined
by the user.

Change-Id: I2782c81e50bf109bf554ad633a4f0591e808a864

8 years agoEnable alarm edition
Lukasz Stanislawski [Mon, 12 Sep 2016 07:41:03 +0000 (09:41 +0200)]
Enable alarm edition

Open alarm edition view after clicking on item in AlarmView.
When click is done new AlarmEditRequestEvent is being sent to EventBus.

When alarm has been edited new AlarmEditedEvent is begin sent in order
to synchronize data on other views.

Change-Id: I122f3c5564f70448dae4841575658ce543ccfeb0

8 years agoCallback function call hotfix.
Radoslaw Czerski [Tue, 13 Sep 2016 14:17:51 +0000 (16:17 +0200)]
Callback function call hotfix.

Change-Id: I0b98d9ceed262fc259ca823a12ea3fc9fdc26956
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoAlarm: enable platform alarms
Lukasz Stanislawski [Sun, 11 Sep 2016 11:51:25 +0000 (13:51 +0200)]
Alarm: enable platform alarms

Add required privilage and fix minor issues to enable
registering platform alarms.

Change-Id: Ibf61c072fd56352dc9b6520ab25102b1edeefee7

8 years agoAdd Delete Alarm view and presenter.
Lukasz Stanislawski [Tue, 6 Sep 2016 12:30:06 +0000 (14:30 +0200)]
Add Delete Alarm view and presenter.

Add possibility to delete exitsing alarms by using "menu"
hardware button and pressing "delete" item.
The new view with selectable alarms is being pushed.

When alarms are begin deleted the AlarmRemovedEvent is being
triggered, which allows to synchronize other views (eg. AlarmView)

Change-Id: Ifa41318fdb5c9930bb6b7e3dfb6931ee3e21db13

8 years agoAdd empty list screen.
Radoslaw Czerski [Tue, 13 Sep 2016 13:53:00 +0000 (15:53 +0200)]
Add empty list screen.

Change-Id: I3dc57420e381cdfcdc93f85e2649064b0b87111d
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoWorldclock Map View and timezone details added.
Radoslaw Czerski [Tue, 13 Sep 2016 13:48:32 +0000 (15:48 +0200)]
Worldclock Map View and timezone details added.

MVP model is not implemented yet and will be added in separate commit.

Change-Id: Iad0aa1d8950856f9cfe6810811c4d941c3ddb8cb
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoAlarmView: implement adding alarms by clicking "+"
Lukasz Stanislawski [Mon, 5 Sep 2016 13:09:27 +0000 (15:09 +0200)]
AlarmView: implement adding alarms by clicking "+"

Add floating button on main view. Handle request to add alarm
via EventBus events. MainController is now responsible for handling
EditAlarmView and EditAlarmPresenter lifecycle.

Change-Id: I69fbc407dfe3fde2108a32d44ed9b6c4c149e56d

8 years agoAlarmPresenter: add update on alarm add
Lukasz Stanislawski [Wed, 31 Aug 2016 13:05:48 +0000 (15:05 +0200)]
AlarmPresenter: add update on alarm add

Add new Added/Removed events to broadcast creation/removal
of alarms.

Change-Id: Ia9cb122a66d7b31b420a3416db48553c668d212f

8 years agoevent bus implementation
Lukasz Stanislawski [Wed, 31 Aug 2016 06:37:01 +0000 (08:37 +0200)]
event bus implementation

Create global bus for application events. Allows
multiple observers to register on one particular event.

Change-Id: I4da624c7cf492224ba53431fd6e03781eb3c81a5

8 years agoimprove Time.h dummy implementation.
Lukasz Stanislawski [Sun, 11 Sep 2016 09:38:58 +0000 (11:38 +0200)]
improve Time.h dummy implementation.

Instead of returning hardcoded values now return real values.
This code will be changed when proper icu support will be added.

Change-Id: Id056526136a01f302510284dfe0d69349a8fffdf

8 years agoAdd proper clock icon. Capitalize label.
Lukasz Stanislawski [Sun, 11 Sep 2016 06:48:49 +0000 (08:48 +0200)]
Add proper clock icon. Capitalize label.

Change-Id: Ib5f332996e5c5a67b99830b8d4a5cf1f4e32fb75

8 years agoApply Tizen Studio project files. Fix warnings.
Lukasz Stanislawski [Fri, 9 Sep 2016 12:22:44 +0000 (14:22 +0200)]
Apply Tizen Studio project files. Fix warnings.

Change-Id: I709975a8a8fd112d7bc9e11da9dc41adce1b674d

8 years agoAlarmView: add gradient list background
Lukasz Stanislawski [Tue, 30 Aug 2016 13:54:49 +0000 (15:54 +0200)]
AlarmView: add gradient list background

Change-Id: I327af43d46be5bc155d70d17cb95b6869e09a475

8 years agocommon: remove CLOCK_EXPORT_API define
Lukasz Stanislawski [Mon, 5 Sep 2016 13:28:45 +0000 (15:28 +0200)]
common: remove CLOCK_EXPORT_API define

After merging bin and libs export attribute is no longer needed.

Change-Id: I6bbf5510550e1d4e8c90a72e5ec8c7cb33cadb9d

8 years agoEditAlarmPresenter: implement basic functionality
Lukasz Stanislawski [Tue, 30 Aug 2016 13:49:09 +0000 (15:49 +0200)]
EditAlarmPresenter: implement basic functionality

Allow to create new Alarm on basic edit alarm view (shown at startup).
The synchronization with different view is not supported yet, so
app restart is required to sync other views.

Change-Id: I1715f730197e4bde6a3b9af30c5c7b0cb64241c4

8 years agoEdit/Add View added.
Lukasz Stanislawski [Fri, 19 Aug 2016 13:09:28 +0000 (15:09 +0200)]
Edit/Add View added.

Provide simple edit/view class that will handle editing alarms.
Currently presenter is not implemented so view is just a stub.

Change-Id: I770fe709643d008fe5e2b8d022f7519bfd0ff4c8

8 years agoStopwatch implementation
Kamil Lipiszko [Fri, 5 Aug 2016 14:36:45 +0000 (16:36 +0200)]
Stopwatch implementation

Change-Id: I673b3be087bf59076add6a1af7500bb03a463c0c

8 years agomerge common & worldclock namespaces
Lukasz Stanislawski [Thu, 18 Aug 2016 14:25:22 +0000 (16:25 +0200)]
merge common & worldclock namespaces

Change-Id: Ieaadb5f6693331de1f0e998c31a060f44757ae15

8 years agomerge common and clock
Lukasz Stanislawski [Thu, 18 Aug 2016 13:46:33 +0000 (15:46 +0200)]
merge common and clock

Change-Id: I5a7845192d6f2c5e8e75883c93d08bdf82698da6

8 years agoAlarmView implementation
Lukasz Stanislawski [Wed, 17 Aug 2016 06:38:54 +0000 (08:38 +0200)]
AlarmView implementation

Change-Id: Ib8c84aa7664c53f0aaf67f6b8b881944f8c1180e

8 years agoAlarmProviderFile backend implementation
Lukasz Stanislawski [Fri, 5 Aug 2016 14:32:31 +0000 (16:32 +0200)]
AlarmProviderFile backend implementation

AlarmProviderFile uses binary files to store Alarm objects.

Change-Id: Id14ee2c5b2b01b1f0f104fb354ea719f94af6d7d

8 years ago[Clock] base GUI.
Radoslaw Czerski [Fri, 19 Aug 2016 13:34:03 +0000 (15:34 +0200)]
[Clock] base GUI.

Change-Id: I1efb84c293b2a43423d66de93fed1c012e370b00
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years ago[clock]Utils added.
Radoslaw Czerski [Fri, 5 Aug 2016 09:42:23 +0000 (11:42 +0200)]
[clock]Utils added.

Change-Id: Ib55d4081b92b72e1fd88bdacc98403ef59ec1075
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
8 years agoring: alarm ring layout
Kamil Lipiszko [Thu, 4 Aug 2016 13:17:56 +0000 (15:17 +0200)]
ring: alarm ring layout

8 years agocommon: add AlarmProviderStub class
Lukasz Stanislawski [Wed, 27 Jul 2016 11:45:01 +0000 (13:45 +0200)]
common: add AlarmProviderStub class

The purpose of this class is to return dummy values
from model in order to procees with other modules
implementation

8 years agoclock: build break fix after header removal
Lukasz Stanislawski [Wed, 27 Jul 2016 09:59:47 +0000 (11:59 +0200)]
clock: build break fix after header removal

8 years agocommon: remove unused headers
Lukasz Stanislawski [Wed, 27 Jul 2016 09:57:12 +0000 (11:57 +0200)]
common: remove unused headers

8 years agocommon: add AlarmProviderEet class draft
Lukasz Stanislawski [Wed, 27 Jul 2016 09:55:46 +0000 (11:55 +0200)]
common: add AlarmProviderEet class draft

8 years agocommon: implement WeekFlags
Lukasz Stanislawski [Tue, 26 Jul 2016 10:38:32 +0000 (12:38 +0200)]
common: implement WeekFlags

8 years agocommon: interface draft
Lukasz Stanislawski [Tue, 26 Jul 2016 09:10:10 +0000 (11:10 +0200)]
common: interface draft

8 years agoAdd gitignore file
Lukasz Stanislawski [Mon, 25 Jul 2016 12:23:53 +0000 (14:23 +0200)]
Add gitignore file

8 years agoproject build config prepared for 'abs' tool
Lukasz Stanislawski [Mon, 25 Jul 2016 12:19:17 +0000 (14:19 +0200)]
project build config prepared for 'abs' tool

8 years agotemplate of multipackage project added.
Lukasz Stanislawski [Mon, 25 Jul 2016 10:32:34 +0000 (12:32 +0200)]
template of multipackage project added.