change nodisplay of ring from false to true to fix TIVI-702
[profile/ivi/clock.git] / include / clock.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  *     http://floralicense.org/license/
9  *
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.
15  */
16
17
18 #ifndef __DEF_CLOCK_APPLICATION_H_
19 #define __DEF_CLOCK_APPLICATION_H_
20
21 #include <appcore-efl.h>
22 #include <Elementary.h>
23 #include <utilX.h>
24 #include <Ecore_IMF.h>
25 #include <Ecore_X.h>
26 #include <glib-object.h>
27
28 #include <vconf.h>
29 #include <bundle.h>
30 #include <aul.h>
31 #include <ui-gadget.h>
32 #include "clock_define.h"
33 #include "clock_fwk_widget.h"
34 #include "clock_lang.h"
35
36
37 typedef enum _CLK_LAUNCH_TYPE CLK_LAUNCH_TYPE;
38 enum _CLK_LAUNCH_TYPE {
39         CLK_LAUNCH_TYPE_CLOCK = 1,
40         CLK_LAUNCH_TYPE_ALARM_CREATE,
41         CLK_LAUNCH_TYPE_MAX
42 };
43
44 #define DESKTOP_MODE_ICON      "/usr/share/icons/default/small/org.tizen.clock.png"
45
46 //
47 struct appdata {
48         int root_w;
49         int root_h;
50         int root_x;
51         int root_y;
52
53         Elm_Theme *m_th;
54
55         /* public used widget */
56         Evas_Object *win;
57         Evas *evas;
58         Evas_Object *bg;
59         Evas_Object *window_icon;
60
61         // samsung window layout
62         Evas_Object *ly_main;
63         // samsung window layout
64         Evas_Object *layout_main;
65         Evas_Object *conform;
66         Evas_Object *eo_navi;
67         Elm_Object_Item *ei_naviframe;
68
69         Evas_Object *ctrl_bar;
70         Eina_Bool ctrlbar_is_visible;
71
72         Elm_Object_Item *item[5];
73         Evas_Object *sub_view[5];
74
75         Evas_Object *view_alarm;
76         Evas_Object *view_worldclock;
77         Evas_Object *view_stopwatch;
78         Evas_Object *view_timer;
79
80         Eina_Bool bPaused;
81         int current_view_id;
82         int history_view_id;
83         int next_view_id;
84
85         Evas_Object *fake_image;
86         Ecore_Timer *fake_view_timer;
87
88         Ecore_Timer *idle_capture_timer;
89
90         Evas_Object *popup;
91         //
92         CLK_LAUNCH_TYPE clk_launch_type;
93 };
94
95 #endif                          /* __DEF_CLOCK_APPLICATION_H_ */