tizen 2.3.1 release
[apps/home/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 Eina_Bool setting_phone_region_format_click_softkey_cancel_cb(void *data, Elm_Object_Item *it);
41 static void setting_phone_region_format_mouse_up_Gendial_list_radio_cb(void
42                                                                        *data,
43                                                                        Evas_Object
44                                                                        *obj,
45                                                                        void
46                                                                        *event_info);
47 static int setting_phone_region_format_compare_cb(const void *d1,
48                                                   const void *d2);
49 int setting_phone_region_format_set_dateformat(const char *region,
50                                                void *data);
51 #endif                          /* __SETTING_PHONE_REGION_FORMAT_H__ */