30e27b49f51f509d9abb082320011a678d65110a
[apps/home/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 #define SETTING_TIME_ZONEINFO_PATH              "/usr/share/zoneinfo/"
34 #define SETTING_TIME_SHARE_LOCAL_PATH   "/usr/share/locale"
35 #define SETTING_TZONE_SYMLINK_PATH              "/opt/etc/localtime"
36
37 void setting_time_main_launch_worldclock_sg(void *data);
38 void setting_time_main_close_worldclock_sg(gpointer cb_data, gint argc,
39                                            gchar **argv);
40
41 void setting_time_main_click_softkey_left_cb(void *data, Evas_Object *obj,
42                                              void *event_info);
43 void setting_time_main_click_softkey_caller_exist_left_cb(void *data,
44                                                           Evas_Object *obj,
45                                                           void *event_info);
46 void setting_time_main_click_softkey_caller_exist_right_cb(void *data,
47                                                            Evas_Object *obj,
48                                                            void *event_info);
49 static void setting_time_main_chk_btn_cb(void *data, Evas_Object *obj,
50                                          void *event_info);
51 void setting_time_main_item_mouse_up_cb(void *data, Evas *e, Evas_Object *obj,
52                                         void *event_info);
53 static void setting_time_main_mouse_up_Gendial_list_cb(void *data,
54                                                        Evas_Object *obj,
55                                                        void *event_info);
56 void setting_time_main_btn_update_ok_cb(void *cb);
57 void setting_time_main_btn_update_cancel_cb(void *cb);
58 void setting_time_update_time_date_format_string(SettingTimeUG *ad);
59 Eina_Bool setting_update_datefield(void *cb);
60 int setting_time_check_automatic_time_update_state();
61 static int __setting_set_city_tzone(const char* pTZPath);
62
63 #endif                          /* __SETTING_TIME_MAIN_H__ */