4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
6 * Contact: MyoungJune Park <mj2004.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef __SETTING_TIME_H__
22 #define __SETTING_TIME_H__
26 #include <sys/ioctl.h>
27 #include <linux/rtc.h>
30 #include <Elementary.h>
32 #include <glib-object.h>
34 #include <setting-common-draw-widget.h>
35 #include <setting-common-view.h>
36 #define ERR_BIGGER_THAN_2037 "Cannot Set the year bigger than 2037"
37 #define AUTO_TIME_UPDATE_ON "Automatic time update is ON!"
38 #define SETTING_TIME_AUTO_UPDATE_DESC "IDS_ST_BODY_USE_TIME_PROVIDED_BY_NETWORK"
40 typedef struct _SettingTimeUG SettingTimeUG;
43 * Setting Time UG context
44 * all UG function has void* as an agument. this is casted back to SettingTimeUG
45 * and the functions access app context.
47 struct _SettingTimeUG {
49 ui_gadget_h ug; /**< ug struct itself */
51 /* add more variables here (move your appdata to here) */
54 service_h bundle_data; /**< when loading this UG, bundle is stored */
56 Evas_Object *win_main_layout;
60 ui_gadget_h ug_loading;
62 Evas_Object *navi_bar;
63 Evas_Object *scrl_main;
66 Ecore_Timer *update_timer;
67 Evas_Object *pop_progress;
69 Eina_Bool is_datefield_selected;
72 Setting_GenGroupItem_Data *data_auto;
73 Setting_GenGroupItem_Data *data_tz;
74 Setting_GenGroupItem_Data *data_dst;
75 Setting_GenGroupItem_Data *data_time;
76 Setting_GenGroupItem_Data *data_time_fmt;
77 Setting_GenGroupItem_Data *data_date_fmt;
78 Setting_GenGroupItem_Data *data_firstday_week_fmt;
81 Evas_Object *chk_auto;
83 Elm_Genlist_Item_Class itc_2text_2;
84 Elm_Genlist_Item_Class itc_2text_arrow;
85 Elm_Genlist_Item_Class itc_1text_1icon;
86 Elm_Genlist_Item_Class itc_seperator;
87 Elm_Genlist_Item_Class itc_layout;
88 Elm_Genlist_Item_Class itc_2text_3_parent;
89 Elm_Genlist_Item_Class itc_1icon_1text_sub;
91 Ecore_Idler *update_timezone_idler;
92 Ecore_Idler *refresh_time_idler;
95 extern setting_view setting_view_time_main;
97 #endif /* __SETTING_TIME_H__ */