Tizen 2.0 Release
[apps/home/settings.git] / setting-phone / include / setting-phone-region-format.h
1 /*
2  * setting
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Flora License, Version 1.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://floralicense.org/license/
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __SETTING_PHONE_REGION_FORMAT_H__
18 #define __SETTING_PHONE_REGION_FORMAT_H__
19
20 #include <setting-phone-language-region.h>
21 typedef struct _Setting_Region_Table {
22         char *key;
23         char *desc;
24 } Setting_Region_Table;
25
26 #define DATA_FORMAT_SKELETON "yMd"
27 #define DATA_FORMAT_CATEGORY_NUM 4
28 #define DATA_FORMAT_DEFAULT 1
29
30 #define SETTING_PHONE_REGION_FORMAT_ANIMATOR_START_INDEX 30
31
32 static int setting_phone_region_format_get_region_fmt(char *list[],
33                                                       int item_idx[],
34                                                       char *region_keyStr[],
35                                                       int *region_num);
36 static void setting_phone_region_format_click_softkey_cancel_cb(void *data,
37                                                                 Evas_Object *
38                                                                 obj, void
39                                                                 *event_info);
40 static void setting_phone_region_format_mouse_up_Gendial_list_radio_cb(void
41                                                                        *data,
42                                                                        Evas_Object
43                                                                  *obj,
44                                                                        void
45                                                                        *event_info);
46 static int setting_phone_region_format_compare_cb(const void *d1,
47                                                   const void *d2);
48 static int setting_phone_region_format_set_dateformat(const char *region,
49                                                       void *data);
50 #endif                          /* __SETTING_PHONE_REGION_FORMAT_H__ */