3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.1 (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://floralicense.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 __GI_TIMEPICKER_H__
20 #define __GI_TIMEPICKER_H__
23 #include <Elementary.h>
25 typedef void (*Time_Changed_Callback)(void *data, struct tm* updated_tm);
27 Elm_Object_Item* cal_genlist_item_timepicker_add(Evas_Object *genlist,
28 const char* title, struct tm* time, Eina_Bool allday,
29 Time_Changed_Callback time_changed_callback, void* data);
31 void cal_genlist_item_timepicker_update_value(Elm_Object_Item* item);
33 void cal_genlist_item_timepicker_update_mode(
34 Elm_Object_Item* item, Eina_Bool allday);
36 void cal_genlist_item_timepicker_disabled_set(Elm_Object_Item* item, Eina_Bool disabled);
38 void cal_genlist_item_radio_timepicker_get_value(Elm_Object_Item* timepicker, struct tm* datetime);
40 void cal_genlist_item_radio_timepicker_set_value(Elm_Object_Item* timepicker, const struct tm* datetime);