[misc] Sycn with master branch.
[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.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
8   *
9   *       http://floralicense.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 #ifndef __GI_TIMEPICKER_H__
20 #define __GI_TIMEPICKER_H__
21
22 #include <time.h>
23 #include <Elementary.h>
24
25 typedef void (*Time_Changed_Callback)(void *data, struct tm* updated_tm);
26
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);
30
31 void cal_genlist_item_timepicker_update_value(Elm_Object_Item* item);
32
33 void cal_genlist_item_timepicker_update_mode(
34                 Elm_Object_Item* item, Eina_Bool allday);
35
36 void cal_genlist_item_timepicker_disabled_set(Elm_Object_Item* item, Eina_Bool disabled);
37
38 void cal_genlist_item_radio_timepicker_get_value(Elm_Object_Item* timepicker, struct tm* datetime);
39
40 void cal_genlist_item_radio_timepicker_set_value(Elm_Object_Item* timepicker, const struct tm* datetime);
41
42 #endif