replaced heynoti call with vconf listen
[apps/core/preloaded/settings.git] / setting-time / include / setting-time-main.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  */
21 #ifndef __SETTING_TIME_MAIN_H__
22 #define __SETTING_TIME_MAIN_H__
23
24 #include <setting-time.h>
25 #include <setting-time-engine.h>
26
27 #define MAX_ARGS                        15
28 #define CITY_BUF_SIZE           128
29 #define GMT_BUF_SIZE            10
30 #define __MAX_PATH_SIZE         1024
31
32
33 /* TODO once time changes, heynoti message is sent.
34         need to see this is proper design */
35
36 #define SETTING_TIME_ZONEINFO_PATH              "/usr/share/zoneinfo/"
37 #define SETTING_TIME_SHARE_LOCAL_PATH   "/usr/share/locale"
38 #define SETTING_TZONE_SYMLINK_PATH              "/opt/etc/localtime"
39
40 void setting_time_main_launch_worldclock_sg(void *data);
41 void setting_time_main_close_worldclock_sg(gpointer cb_data, gint argc,
42                                            gchar **argv);
43
44 void setting_time_main_click_softkey_left_cb(void *data, Evas_Object *obj,
45                                              void *event_info);
46 void setting_time_main_click_softkey_caller_exist_left_cb(void *data,
47                                                           Evas_Object *obj,
48                                                           void *event_info);
49 void setting_time_main_click_softkey_caller_exist_right_cb(void *data,
50                                                            Evas_Object *obj,
51                                                            void *event_info);
52 static void setting_time_main_chk_btn_cb(void *data, Evas_Object *obj,
53                                          void *event_info);
54 void setting_time_main_item_mouse_up_cb(void *data, Evas *e, Evas_Object *obj,
55                                         void *event_info);
56 static void setting_time_main_mouse_up_Gendial_list_cb(void *data,
57                                                        Evas_Object *obj,
58                                                        void *event_info);
59 void setting_time_main_btn_update_ok_cb(void *cb);
60 void setting_time_main_btn_update_cancel_cb(void *cb);
61 void setting_time_update_time_date_format_string(SettingTimeUG *ad);
62 Eina_Bool setting_update_datefield(void *cb);
63 int setting_time_check_automatic_time_update_state();
64 static void setting_time_main_controlbar_lbtn_label_set(
65                                                         Evas_Object *controlbar,
66                                                         char *label);
67 static int __setting_set_city_tzone(const char* pTZPath);
68
69 #endif                          /* __SETTING_TIME_MAIN_H__ */