Tizen 2.1 release
[platform/core/uifw/e17.git] / src / bin / e_confirm_dialog.h
1 #ifdef E_TYPEDEFS
2
3 typedef struct _E_Confirm_Dialog E_Confirm_Dialog;
4
5 #else
6 #ifndef E_CONFIRM_DIALOG_H
7 #define E_CONFIRM_DIALOG_H
8
9 #define E_CONFIRM_DIALOG_TYPE 0x16f5904e
10
11 struct _E_Confirm_Dialog
12 {
13    E_Object  e_obj_inherit;
14
15    E_Dialog *dia;
16
17    struct
18    {
19       void *data;
20       void  (*func)(void *data);
21    } yes;
22    struct
23    {
24       void *data;
25       void  (*func)(void *data);
26    } no;
27    struct
28    {
29       void *data;
30       void  (*func)(void *data);
31    } del;
32    Eina_Bool no_run : 1;
33 };
34
35 /*
36  * @title - dialog title
37  * @icon  - dialog icon
38  * @text - the text show in the dialog
39  * @button_text - "yes" button text
40  * @button2_text - "no" button text
41  * func - the function to call if yes is pressed
42  * func2 - the function to call if no is pressed
43  * data - the pointer passed to func
44  * data2 - the pointer passed to func2
45  * del_func - the function to call before dialog is deleted
46  * del_data - the pointer passer to del_func
47  */
48 EAPI E_Confirm_Dialog *e_confirm_dialog_show(const char *title, const char *icon, const char *text, const char *button_text, const char *button2_text, void (*func)(void *data), void (*func2)(void *data), void *data, void *data2, void (*del_func)(void *data), void *del_data);
49
50 #endif
51 #endif