summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_systray_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_systray_eo.c')
-rw-r--r--src/lib/elementary/elm_systray_eo.c250
1 files changed, 250 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_systray_eo.c b/src/lib/elementary/elm_systray_eo.c
new file mode 100644
index 0000000..0207773
--- /dev/null
+++ b/src/lib/elementary/elm_systray_eo.c
@@ -0,0 +1,250 @@
1
2void _elm_systray_id_set(Eo *obj, void *pd, const char *id);
3
4
5static Eina_Error
6__eolian_elm_systray_id_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; const char *cval;
9 if (!eina_value_string_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_systray_id_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_id_set, EFL_FUNC_CALL(id), const char *id);
21
22const char *_elm_systray_id_get(const Eo *obj, void *pd);
23
24
25static Eina_Value
26__eolian_elm_systray_id_get_reflect(Eo *obj)
27{
28 const char *val = elm_obj_systray_id_get(obj);
29 return eina_value_string_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_id_get, const char *, NULL);
33
34void _elm_systray_category_set(Eo *obj, void *pd, Elm_Systray_Category cat);
35
36EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_category_set, EFL_FUNC_CALL(cat), Elm_Systray_Category cat);
37
38Elm_Systray_Category _elm_systray_category_get(const Eo *obj, void *pd);
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_category_get, Elm_Systray_Category, 0);
41
42void _elm_systray_icon_theme_path_set(Eo *obj, void *pd, const char *icon_theme_path);
43
44
45static Eina_Error
46__eolian_elm_systray_icon_theme_path_set_reflect(Eo *obj, Eina_Value val)
47{
48 Eina_Error r = 0; const char *cval;
49 if (!eina_value_string_convert(&val, &cval))
50 {
51 r = EINA_ERROR_VALUE_FAILED;
52 goto end;
53 }
54 elm_obj_systray_icon_theme_path_set(obj, cval);
55 end:
56 eina_value_flush(&val);
57 return r;
58}
59
60EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_icon_theme_path_set, EFL_FUNC_CALL(icon_theme_path), const char *icon_theme_path);
61
62const char *_elm_systray_icon_theme_path_get(const Eo *obj, void *pd);
63
64
65static Eina_Value
66__eolian_elm_systray_icon_theme_path_get_reflect(Eo *obj)
67{
68 const char *val = elm_obj_systray_icon_theme_path_get(obj);
69 return eina_value_string_init(val);
70}
71
72EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_icon_theme_path_get, const char *, NULL);
73
74void _elm_systray_menu_set(Eo *obj, void *pd, const Efl_Object *menu);
75
76EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_menu_set, EFL_FUNC_CALL(menu), const Efl_Object *menu);
77
78const Efl_Object *_elm_systray_menu_get(const Eo *obj, void *pd);
79
80EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_menu_get, const Efl_Object *, NULL);
81
82void _elm_systray_att_icon_name_set(Eo *obj, void *pd, const char *att_icon_name);
83
84
85static Eina_Error
86__eolian_elm_systray_att_icon_name_set_reflect(Eo *obj, Eina_Value val)
87{
88 Eina_Error r = 0; const char *cval;
89 if (!eina_value_string_convert(&val, &cval))
90 {
91 r = EINA_ERROR_VALUE_FAILED;
92 goto end;
93 }
94 elm_obj_systray_att_icon_name_set(obj, cval);
95 end:
96 eina_value_flush(&val);
97 return r;
98}
99
100EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_att_icon_name_set, EFL_FUNC_CALL(att_icon_name), const char *att_icon_name);
101
102const char *_elm_systray_att_icon_name_get(const Eo *obj, void *pd);
103
104
105static Eina_Value
106__eolian_elm_systray_att_icon_name_get_reflect(Eo *obj)
107{
108 const char *val = elm_obj_systray_att_icon_name_get(obj);
109 return eina_value_string_init(val);
110}
111
112EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_att_icon_name_get, const char *, NULL);
113
114void _elm_systray_status_set(Eo *obj, void *pd, Elm_Systray_Status st);
115
116EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_status_set, EFL_FUNC_CALL(st), Elm_Systray_Status st);
117
118Elm_Systray_Status _elm_systray_status_get(const Eo *obj, void *pd);
119
120EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_status_get, Elm_Systray_Status, 0);
121
122void _elm_systray_icon_name_set(Eo *obj, void *pd, const char *icon_name);
123
124
125static Eina_Error
126__eolian_elm_systray_icon_name_set_reflect(Eo *obj, Eina_Value val)
127{
128 Eina_Error r = 0; const char *cval;
129 if (!eina_value_string_convert(&val, &cval))
130 {
131 r = EINA_ERROR_VALUE_FAILED;
132 goto end;
133 }
134 elm_obj_systray_icon_name_set(obj, cval);
135 end:
136 eina_value_flush(&val);
137 return r;
138}
139
140EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_icon_name_set, EFL_FUNC_CALL(icon_name), const char *icon_name);
141
142const char *_elm_systray_icon_name_get(const Eo *obj, void *pd);
143
144
145static Eina_Value
146__eolian_elm_systray_icon_name_get_reflect(Eo *obj)
147{
148 const char *val = elm_obj_systray_icon_name_get(obj);
149 return eina_value_string_init(val);
150}
151
152EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_icon_name_get, const char *, NULL);
153
154void _elm_systray_title_set(Eo *obj, void *pd, const char *title);
155
156
157static Eina_Error
158__eolian_elm_systray_title_set_reflect(Eo *obj, Eina_Value val)
159{
160 Eina_Error r = 0; const char *cval;
161 if (!eina_value_string_convert(&val, &cval))
162 {
163 r = EINA_ERROR_VALUE_FAILED;
164 goto end;
165 }
166 elm_obj_systray_title_set(obj, cval);
167 end:
168 eina_value_flush(&val);
169 return r;
170}
171
172EOAPI EFL_VOID_FUNC_BODYV(elm_obj_systray_title_set, EFL_FUNC_CALL(title), const char *title);
173
174const char *_elm_systray_title_get(const Eo *obj, void *pd);
175
176
177static Eina_Value
178__eolian_elm_systray_title_get_reflect(Eo *obj)
179{
180 const char *val = elm_obj_systray_title_get(obj);
181 return eina_value_string_init(val);
182}
183
184EOAPI EFL_FUNC_BODY_CONST(elm_obj_systray_title_get, const char *, NULL);
185
186Eina_Bool _elm_systray_register(Eo *obj, void *pd);
187
188EOAPI EFL_FUNC_BODY(elm_obj_systray_register, Eina_Bool, 0);
189
190static Eina_Bool
191_elm_systray_class_initializer(Efl_Class *klass)
192{
193 const Efl_Object_Ops *opsp = NULL;
194
195 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
196
197#ifndef ELM_SYSTRAY_EXTRA_OPS
198#define ELM_SYSTRAY_EXTRA_OPS
199#endif
200
201 EFL_OPS_DEFINE(ops,
202 EFL_OBJECT_OP_FUNC(elm_obj_systray_id_set, _elm_systray_id_set),
203 EFL_OBJECT_OP_FUNC(elm_obj_systray_id_get, _elm_systray_id_get),
204 EFL_OBJECT_OP_FUNC(elm_obj_systray_category_set, _elm_systray_category_set),
205 EFL_OBJECT_OP_FUNC(elm_obj_systray_category_get, _elm_systray_category_get),
206 EFL_OBJECT_OP_FUNC(elm_obj_systray_icon_theme_path_set, _elm_systray_icon_theme_path_set),
207 EFL_OBJECT_OP_FUNC(elm_obj_systray_icon_theme_path_get, _elm_systray_icon_theme_path_get),
208 EFL_OBJECT_OP_FUNC(elm_obj_systray_menu_set, _elm_systray_menu_set),
209 EFL_OBJECT_OP_FUNC(elm_obj_systray_menu_get, _elm_systray_menu_get),
210 EFL_OBJECT_OP_FUNC(elm_obj_systray_att_icon_name_set, _elm_systray_att_icon_name_set),
211 EFL_OBJECT_OP_FUNC(elm_obj_systray_att_icon_name_get, _elm_systray_att_icon_name_get),
212 EFL_OBJECT_OP_FUNC(elm_obj_systray_status_set, _elm_systray_status_set),
213 EFL_OBJECT_OP_FUNC(elm_obj_systray_status_get, _elm_systray_status_get),
214 EFL_OBJECT_OP_FUNC(elm_obj_systray_icon_name_set, _elm_systray_icon_name_set),
215 EFL_OBJECT_OP_FUNC(elm_obj_systray_icon_name_get, _elm_systray_icon_name_get),
216 EFL_OBJECT_OP_FUNC(elm_obj_systray_title_set, _elm_systray_title_set),
217 EFL_OBJECT_OP_FUNC(elm_obj_systray_title_get, _elm_systray_title_get),
218 EFL_OBJECT_OP_FUNC(elm_obj_systray_register, _elm_systray_register),
219 ELM_SYSTRAY_EXTRA_OPS
220 );
221 opsp = &ops;
222
223 static const Efl_Object_Property_Reflection refl_table[] = {
224 {"id", __eolian_elm_systray_id_set_reflect, __eolian_elm_systray_id_get_reflect},
225 {"icon_theme_path", __eolian_elm_systray_icon_theme_path_set_reflect, __eolian_elm_systray_icon_theme_path_get_reflect},
226 {"att_icon_name", __eolian_elm_systray_att_icon_name_set_reflect, __eolian_elm_systray_att_icon_name_get_reflect},
227 {"icon_name", __eolian_elm_systray_icon_name_set_reflect, __eolian_elm_systray_icon_name_get_reflect},
228 {"title", __eolian_elm_systray_title_set_reflect, __eolian_elm_systray_title_get_reflect},
229 };
230 static const Efl_Object_Property_Reflection_Ops rops = {
231 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
232 };
233 ropsp = &rops;
234
235 return efl_class_functions_set(klass, opsp, ropsp);
236}
237
238static const Efl_Class_Description _elm_systray_class_desc = {
239 EO_VERSION,
240 "Elm.Systray",
241 EFL_CLASS_TYPE_REGULAR,
242 0,
243 _elm_systray_class_initializer,
244 NULL,
245 NULL
246};
247
248EFL_DEFINE_CLASS(elm_systray_class_get, &_elm_systray_class_desc, EFL_OBJECT_CLASS, NULL);
249
250#include "elm_systray_eo.legacy.c"