test
[apps/core/preloaded/calendar.git] / include / gi-timepicker.h
1 /*
2   *
3   *  Copyright 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://www.tizenopensource.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
18
19 #include <time.h>
20 #include <Elementary.h>
21
22 typedef void (*Time_Changed_Callback)(void *data, struct tm* updated_tm);
23
24 Elm_Object_Item* cal_genlist_item_timepicker_add(Evas_Object *genlist,
25                 const char* title, const struct tm* time, Eina_Bool allday, Eina_Bool is_hour24,
26                 Time_Changed_Callback time_changed_callback, void* data);
27
28 void cal_genlist_item_timepicker_update_value(Elm_Object_Item* item, const struct tm* time);
29
30 void cal_genlist_item_timepicker_update_mode(
31                 Elm_Object_Item* item, Eina_Bool allday, Eina_Bool is_hour24);
32
33 void cal_genlist_item_timepicker_disabled_set(Elm_Object_Item* item, Eina_Bool disabled);