summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_sys_notify_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_sys_notify_eo.c')
-rw-r--r--src/lib/elementary/elm_sys_notify_eo.c76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_sys_notify_eo.c b/src/lib/elementary/elm_sys_notify_eo.c
new file mode 100644
index 0000000..7b57eca
--- /dev/null
+++ b/src/lib/elementary/elm_sys_notify_eo.c
@@ -0,0 +1,76 @@
1
2Eina_Bool _elm_sys_notify_servers_set(Eo *obj, Elm_Sys_Notify_Data *pd, Elm_Sys_Notify_Server servers);
3
4EOAPI EFL_FUNC_BODYV(elm_obj_sys_notify_servers_set, Eina_Bool, 0, EFL_FUNC_CALL(servers), Elm_Sys_Notify_Server servers);
5
6Elm_Sys_Notify_Server _elm_sys_notify_servers_get(const Eo *obj, Elm_Sys_Notify_Data *pd);
7
8EOAPI EFL_FUNC_BODY_CONST(elm_obj_sys_notify_servers_get, Elm_Sys_Notify_Server, 0);
9
10Elm_Sys_Notify *_elm_sys_notify_singleton_get(void);
11
12EOAPI Elm_Sys_Notify * elm_obj_sys_notify_singleton_get(void)
13{
14 elm_sys_notify_class_get();
15 return _elm_sys_notify_singleton_get();
16}
17EOAPI Elm_Sys_Notify * elm_sys_notify_singleton_get(void)
18{
19 elm_sys_notify_class_get();
20 return _elm_sys_notify_singleton_get();
21}
22
23Efl_Object *_elm_sys_notify_efl_object_constructor(Eo *obj, Elm_Sys_Notify_Data *pd);
24
25
26void _elm_sys_notify_efl_object_destructor(Eo *obj, Elm_Sys_Notify_Data *pd);
27
28
29void _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);
30
31
32void _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);
33
34
35void _elm_sys_notify_elm_sys_notify_interface_close(const Eo *obj, Elm_Sys_Notify_Data *pd, unsigned int id);
36
37
38static Eina_Bool
39_elm_sys_notify_class_initializer(Efl_Class *klass)
40{
41 const Efl_Object_Ops *opsp = NULL;
42
43 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
44
45#ifndef ELM_SYS_NOTIFY_EXTRA_OPS
46#define ELM_SYS_NOTIFY_EXTRA_OPS
47#endif
48
49 EFL_OPS_DEFINE(ops,
50 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_servers_set, _elm_sys_notify_servers_set),
51 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_servers_get, _elm_sys_notify_servers_get),
52 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_sys_notify_efl_object_constructor),
53 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_sys_notify_efl_object_destructor),
54 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_send, _elm_sys_notify_elm_sys_notify_interface_send),
55 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_simple_send, _elm_sys_notify_elm_sys_notify_interface_simple_send),
56 EFL_OBJECT_OP_FUNC(elm_obj_sys_notify_interface_close, _elm_sys_notify_elm_sys_notify_interface_close),
57 ELM_SYS_NOTIFY_EXTRA_OPS
58 );
59 opsp = &ops;
60
61 return efl_class_functions_set(klass, opsp, ropsp);
62}
63
64static const Efl_Class_Description _elm_sys_notify_class_desc = {
65 EO_VERSION,
66 "Elm.Sys_Notify",
67 EFL_CLASS_TYPE_REGULAR,
68 sizeof(Elm_Sys_Notify_Data),
69 _elm_sys_notify_class_initializer,
70 _elm_sys_notify_class_constructor,
71 NULL
72};
73
74EFL_DEFINE_CLASS(elm_sys_notify_class_get, &_elm_sys_notify_class_desc, EFL_OBJECT_CLASS, ELM_SYS_NOTIFY_INTERFACE_INTERFACE, NULL);
75
76#include "elm_sys_notify_eo.legacy.c"