1
2 Eina_Bool _elm_sys_notify_servers_set(Eo *obj, Elm_Sys_Notify_Data *pd, Elm_Sys_Notify_Server servers);
3
4 EOAPI EFL_FUNC_BODYV(elm_obj_sys_notify_servers_set, Eina_Bool, 0, EFL_FUNC_CALL(servers), Elm_Sys_Notify_Server servers);
5
6 Elm_Sys_Notify_Server _elm_sys_notify_servers_get(const Eo *obj, Elm_Sys_Notify_Data *pd);
7
8 EOAPI EFL_FUNC_BODY_CONST(elm_obj_sys_notify_servers_get, Elm_Sys_Notify_Server, 0);
9
10 Elm_Sys_Notify *_elm_sys_notify_singleton_get(void);
11
elm_obj_sys_notify_singleton_get(void)12 EOAPI Elm_Sys_Notify * elm_obj_sys_notify_singleton_get(void)
13 {
14 const Efl_Class *klass = elm_sys_notify_class_get();
15 EINA_SAFETY_ON_NULL_RETURN_VAL(klass, NULL);
16 return _elm_sys_notify_singleton_get();
17 }
elm_sys_notify_singleton_get(void)18 EOAPI Elm_Sys_Notify * elm_sys_notify_singleton_get(void)
19 {
20 const Efl_Class *klass = elm_sys_notify_class_get();
21 EINA_SAFETY_ON_NULL_RETURN_VAL(klass, NULL);
22 return _elm_sys_notify_singleton_get();
23 }
24
25 Efl_Object *_elm_sys_notify_efl_object_constructor(Eo *obj, Elm_Sys_Notify_Data *pd);
26
27
28 void _elm_sys_notify_efl_object_destructor(Eo *obj, Elm_Sys_Notify_Data *pd);
29
30
31 void _elm_sys_notify_elm_sys_notify_interface_send(const Eo *obj, Elm_Sys_Notify_Data *pd, unsigned int replaces_id, const char *icon, const char *summary, const char *body, Elm_Sys_Notify_Urgency urgency, int timeout, Elm_Sys_Notify_Send_Cb cb, const void *cb_data);
32
33
34 void _elm_sys_notify_elm_sys_notify_interface_simple_send(const Eo *obj, Elm_Sys_Notify_Data *pd, const char *icon, const char *summary, const char *body);
35
36
37 void _elm_sys_notify_elm_sys_notify_interface_close(const Eo *obj, Elm_Sys_Notify_Data *pd, unsigned int id);
38
39
40 static Eina_Bool
_elm_sys_notify_class_initializer(Efl_Class * klass)41 _elm_sys_notify_class_initializer(Efl_Class *klass)
42 {
43 const Efl_Object_Ops *opsp = NULL;
44
45 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
46
47 #ifndef ELM_SYS_NOTIFY_EXTRA_OPS
48 #define ELM_SYS_NOTIFY_EXTRA_OPS
49 #endif
50
51 EFL_OPS_DEFINE(ops,
52 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_servers_set, _elm_sys_notify_servers_set),
53 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_servers_get, _elm_sys_notify_servers_get),
54 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_sys_notify_efl_object_constructor),
55 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_sys_notify_efl_object_destructor),
56 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_send, _elm_sys_notify_elm_sys_notify_interface_send),
57 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_simple_send, _elm_sys_notify_elm_sys_notify_interface_simple_send),
58 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_close, _elm_sys_notify_elm_sys_notify_interface_close),
59 ELM_SYS_NOTIFY_EXTRA_OPS
60 );
61 opsp = &ops;
62
63 return efl_class_functions_set(klass, opsp, ropsp);
64 }
65
66 static const Efl_Class_Description _elm_sys_notify_class_desc = {
67 EO_VERSION,
68 "Elm.Sys_Notify",
69 EFL_CLASS_TYPE_REGULAR,
70 sizeof(Elm_Sys_Notify_Data),
71 _elm_sys_notify_class_initializer,
72 _elm_sys_notify_class_constructor,
73 NULL
74 };
75
76 EFL_DEFINE_CLASS(elm_sys_notify_class_get, &_elm_sys_notify_class_desc, EFL_OBJECT_CLASS, ELM_SYS_NOTIFY_INTERFACE_INTERFACE, NULL);
77
78 #include "elm_sys_notify_eo.legacy.c"
79