3 * Copyright 2012 Samsung Electronics Co., Ltd
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
9 * http://www.tizenopensource.org/license
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.
19 #ifndef __DEF_WORLDCLOCK_TYPES_H__
20 #define __DEF_WORLDCLOCK_TYPES_H__
22 #include <Elementary.h>
23 #include "worldclock_const.h"
25 typedef void (*Wcl_Return_Cb) (void *, Eina_Bool);
26 typedef int (*Wcl_Ctrlbar_Visible_Set) (Eina_Bool);
29 WCL_CALLER_IS_APP_IT_SELF = 0,
30 WCL_CALLER_IS_SHARED_LIBRARY,
31 WCL_CALLER_IS_UI_GADGET,
41 } Wcl_Addlist_Sort_Type;
44 WCL_SELECT_IN_UNSELECTED = 0,
46 WCL_SELECT_IF_HAS_TZPATH,
48 WCL_SELECTION_UNKNOW_FLAG,
52 WCL_SEARCH_BY_ALL_KEYWORDS = 0,
53 WCL_SEARCH_BY_CITY_NAME,
54 WCL_SEARCH_BY_COUNTRY_NAME,
55 WCL_SEARCH_BY_TIMEZONE,
57 WCL_UNKNOWN_SEARCH_TYPE,
71 typedef struct _cs { /* city set */
72 int index; /* record index in db */
73 char city[CITY_BUF_SIZE]; /* city name */
74 char country[COUNTRY_BUF_SIZE]; /* country name */
75 char timezone[TIMEZONE_BUF_SIZE]; /* timezone */
76 int dst_type; /* dst type */
77 int dst_enabled; /* dst disable flag */
78 int selected; /* selected or not */
79 int sequence; /* sequence number in mainlist */
80 char tz_path[TZPATH_BUF_SIZE]; /* TZ path of city */
82 int dst; /* dst value */
83 volatile time_t now_time; /* the current time of city */
86 #endif // __DEF_WORLDCLOCK_TYPES_H__