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