new release for RSA
[apps/core/preloaded/settings.git] / setting-phone / include / setting-phone-region-format.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_PHONE_REGION_FORMAT_H__
22 #define __SETTING_PHONE_REGION_FORMAT_H__
23
24 #include <setting-phone-language-region.h>
25 typedef struct _Setting_Region_Table {
26         char *key;
27         char *desc;
28 } Setting_Region_Table;
29
30 #define DATA_FORMAT_SKELETON "yMd"
31 #define DATA_FORMAT_CATEGORY_NUM 4
32 #define DATA_FORMAT_DEFAULT 1
33
34 #define SETTING_PHONE_REGION_FORMAT_ANIMATOR_START_INDEX 30
35
36 static int setting_phone_region_format_get_region_fmt(char *list[],
37                                                       int item_idx[],
38                                                       char *region_keyStr[],
39                                                       int *region_num);
40 static void setting_phone_region_format_click_softkey_cancel_cb(void *data,
41                                                                 Evas_Object *
42                                                                 obj, void
43                                                                 *event_info);
44 static void setting_phone_region_format_mouse_up_Gendial_list_radio_cb(void
45                                                                        *data,
46                                                                        Evas_Object
47                                                                  *obj,
48                                                                        void
49                                                                        *event_info);
50 static void setting_phone_region_format_close_popup_ex(void *data);
51 static void setting_phone_region_format_exit_cb_ex(void *data,
52                                                    Evas_Object *obj,
53                                                    void *event_info);
54 static int setting_phone_region_format_compare_cb(const void *d1,
55                                                   const void *d2);
56 static int setting_phone_region_format_set_dateformat(const char *region,
57                                                       void *data);
58 #endif                          /* __SETTING_PHONE_REGION_FORMAT_H__ */