2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __DEF_STOPWATCH_LIB_H__
18 #define __DEF_STOPWATCH_LIB_H__
20 #include <Elementary.h>
22 typedef int (*stopwatch_controlbar_visible) (Eina_Bool);
25 * @name stopwatch_view_add
26 * @decription To create and show view for stopwatch.
27 * @param parent, [in], a layout in which to create and show view.
28 * @param cb, [in], a variable to indicate whether controlbar should by shown.
29 * @return Evas_object*, a pointer to the created view. If failed to create view, it is NULL.
39 EAPI Evas_Object *stopwatch_view_add(Evas_Object *parent, Evas_Object *win,
40 stopwatch_controlbar_visible cb);
43 * @name stopwatch_view_free
44 * @decription To delete objects and free memory used by stopwatch.
45 * @param obj, [in], the view that will be distroyed.
56 EAPI void stopwatch_view_free(Evas_Object *obj);
59 * @name stopwatch_view_reload
60 * @decription To reset LCD power off principle when stopwatch is on top level.
71 EAPI void stopwatch_view_reload();
74 * @name stopwatch_view_unload
75 * @decription To restore normal LCD power off principle of other applications when stopwatch is out of focus.
86 EAPI void stopwatch_view_unload();
88 EAPI void stopwatch_app_pause();
90 EAPI void stopwatch_app_resume(Eina_Bool bCurrentView);
92 #endif /* __DEF_STOPWATCH_LIB_H__ */