Tizen 2.1 base
[apps/core/preloaded/calendar.git] / include / save-cancel.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://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 #ifndef SAVE_CANCEL_H_
19 #define SAVE_CANCEL_H_
20
21 #include <Elementary.h>
22
23 typedef void* cal_save_cancel_h;
24
25 typedef void (*save_cancel_cb)(void *data, Evas_Object *obj, void *event_info);
26
27 cal_save_cancel_h cal_save_cancel_create(Evas_Object *naviframe, Evas_Object *conformant, save_cancel_cb save_cb, save_cancel_cb cancel_cb, void* data);
28
29 void cal_save_cancel_destroy(cal_save_cancel_h info);
30
31 void cal_save_cancel_set_input_panel_callback_for_ug(cal_save_cancel_h info, Evas_Object *entry);
32
33 void cal_save_cancel_unset_input_panel_callback_for_ug(Evas_Object *entry);
34
35 void cal_save_cancel_set_button_text(cal_save_cancel_h info, const char *save_button_text, const char *cancel_button_text);
36
37 void cal_save_cancel_set_disabled(cal_save_cancel_h info, Eina_Bool is_disabled_save, Eina_Bool is_disabled_cancel);
38
39 #endif /* SAVE_CANCEL_H_ */