summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_fileselector_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_interface_fileselector_eo.c')
-rw-r--r--src/lib/elementary/elm_interface_fileselector_eo.c236
1 files changed, 236 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_fileselector_eo.c b/src/lib/elementary/elm_interface_fileselector_eo.c
new file mode 100644
index 0000000..d24b1dc
--- /dev/null
+++ b/src/lib/elementary/elm_interface_fileselector_eo.c
@@ -0,0 +1,236 @@
1
2static Eina_Error
3__eolian_elm_interface_fileselector_folder_only_set_reflect(Eo *obj, Eina_Value val)
4{
5 Eina_Error r = 0; Eina_Bool cval;
6 if (!eina_value_bool_convert(&val, &cval))
7 {
8 r = EINA_ERROR_VALUE_FAILED;
9 goto end;
10 }
11 elm_interface_fileselector_folder_only_set(obj, cval);
12 end:
13 eina_value_flush(&val);
14 return r;
15}
16
17EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_folder_only_set, EFL_FUNC_CALL(only), Eina_Bool only);
18
19static Eina_Value
20__eolian_elm_interface_fileselector_folder_only_get_reflect(Eo *obj)
21{
22 Eina_Bool val = elm_interface_fileselector_folder_only_get(obj);
23 return eina_value_bool_init(val);
24}
25
26EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_folder_only_get, Eina_Bool, 0);
27EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_thumbnail_size_set, EFL_FUNC_CALL(w, h), int w, int h);
28EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_interface_fileselector_thumbnail_size_get, EFL_FUNC_CALL(w, h), int *w, int *h);
29
30static Eina_Error
31__eolian_elm_interface_fileselector_hidden_visible_set_reflect(Eo *obj, Eina_Value val)
32{
33 Eina_Error r = 0; Eina_Bool cval;
34 if (!eina_value_bool_convert(&val, &cval))
35 {
36 r = EINA_ERROR_VALUE_FAILED;
37 goto end;
38 }
39 elm_interface_fileselector_hidden_visible_set(obj, cval);
40 end:
41 eina_value_flush(&val);
42 return r;
43}
44
45EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_hidden_visible_set, EFL_FUNC_CALL(hidden), Eina_Bool hidden);
46
47static Eina_Value
48__eolian_elm_interface_fileselector_hidden_visible_get_reflect(Eo *obj)
49{
50 Eina_Bool val = elm_interface_fileselector_hidden_visible_get(obj);
51 return eina_value_bool_init(val);
52}
53
54EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_hidden_visible_get, Eina_Bool, 0);
55EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_sort_method_set, EFL_FUNC_CALL(sort), Elm_Fileselector_Sort sort);
56EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_sort_method_get, Elm_Fileselector_Sort, 0);
57
58static Eina_Error
59__eolian_elm_interface_fileselector_multi_select_set_reflect(Eo *obj, Eina_Value val)
60{
61 Eina_Error r = 0; Eina_Bool cval;
62 if (!eina_value_bool_convert(&val, &cval))
63 {
64 r = EINA_ERROR_VALUE_FAILED;
65 goto end;
66 }
67 elm_interface_fileselector_multi_select_set(obj, cval);
68 end:
69 eina_value_flush(&val);
70 return r;
71}
72
73EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_multi_select_set, EFL_FUNC_CALL(multi), Eina_Bool multi);
74
75static Eina_Value
76__eolian_elm_interface_fileselector_multi_select_get_reflect(Eo *obj)
77{
78 Eina_Bool val = elm_interface_fileselector_multi_select_get(obj);
79 return eina_value_bool_init(val);
80}
81
82EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_multi_select_get, Eina_Bool, 0);
83
84static Eina_Error
85__eolian_elm_interface_fileselector_expandable_set_reflect(Eo *obj, Eina_Value val)
86{
87 Eina_Error r = 0; Eina_Bool cval;
88 if (!eina_value_bool_convert(&val, &cval))
89 {
90 r = EINA_ERROR_VALUE_FAILED;
91 goto end;
92 }
93 elm_interface_fileselector_expandable_set(obj, cval);
94 end:
95 eina_value_flush(&val);
96 return r;
97}
98
99EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_expandable_set, EFL_FUNC_CALL(expand), Eina_Bool expand);
100
101static Eina_Value
102__eolian_elm_interface_fileselector_expandable_get_reflect(Eo *obj)
103{
104 Eina_Bool val = elm_interface_fileselector_expandable_get(obj);
105 return eina_value_bool_init(val);
106}
107
108EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_expandable_get, Eina_Bool, 0);
109EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_mode_set, EFL_FUNC_CALL(mode), Elm_Fileselector_Mode mode);
110EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_mode_get, Elm_Fileselector_Mode, 0);
111
112static Eina_Error
113__eolian_elm_interface_fileselector_is_save_set_reflect(Eo *obj, Eina_Value val)
114{
115 Eina_Error r = 0; Eina_Bool cval;
116 if (!eina_value_bool_convert(&val, &cval))
117 {
118 r = EINA_ERROR_VALUE_FAILED;
119 goto end;
120 }
121 elm_interface_fileselector_is_save_set(obj, cval);
122 end:
123 eina_value_flush(&val);
124 return r;
125}
126
127EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_is_save_set, EFL_FUNC_CALL(is_save), Eina_Bool is_save);
128
129static Eina_Value
130__eolian_elm_interface_fileselector_is_save_get_reflect(Eo *obj)
131{
132 Eina_Bool val = elm_interface_fileselector_is_save_get(obj);
133 return eina_value_bool_init(val);
134}
135
136EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_is_save_get, Eina_Bool, 0);
137EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_selected_models_get, const Eina_List *, NULL);
138
139static Eina_Error
140__eolian_elm_interface_fileselector_current_name_set_reflect(Eo *obj, Eina_Value val)
141{
142 Eina_Error r = 0; const char *cval;
143 if (!eina_value_string_convert(&val, &cval))
144 {
145 r = EINA_ERROR_VALUE_FAILED;
146 goto end;
147 }
148 elm_interface_fileselector_current_name_set(obj, cval);
149 end:
150 eina_value_flush(&val);
151 return r;
152}
153
154EOAPI EFL_VOID_FUNC_BODYV(elm_interface_fileselector_current_name_set, EFL_FUNC_CALL(name), const char *name);
155
156static Eina_Value
157__eolian_elm_interface_fileselector_current_name_get_reflect(Eo *obj)
158{
159 const char *val = elm_interface_fileselector_current_name_get(obj);
160 return eina_value_string_init(val);
161}
162
163EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_current_name_get, const char *, NULL);
164EOAPI EFL_FUNC_BODYV(elm_interface_fileselector_selected_model_set, Eina_Bool, 0, EFL_FUNC_CALL(model), Efl_Io_Model *model);
165EOAPI EFL_FUNC_BODY_CONST(elm_interface_fileselector_selected_model_get, Efl_Io_Model *, NULL);
166EOAPI EFL_FUNC_BODYV(elm_interface_fileselector_custom_filter_append, Eina_Bool, 0, EFL_FUNC_CALL(func, data, filter_name), Elm_Fileselector_Filter_Func func, void *data, const char *filter_name);
167EOAPI EFL_VOID_FUNC_BODY(elm_interface_fileselector_filters_clear);
168EOAPI EFL_FUNC_BODYV(elm_interface_fileselector_mime_types_filter_append, Eina_Bool, 0, EFL_FUNC_CALL(mime_types, filter_name), const char *mime_types, const char *filter_name);
169
170static Eina_Bool
171_elm_interface_fileselector_class_initializer(Efl_Class *klass)
172{
173 const Efl_Object_Ops *opsp = NULL;
174
175 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
176
177#ifndef ELM_INTERFACE_FILESELECTOR_EXTRA_OPS
178#define ELM_INTERFACE_FILESELECTOR_EXTRA_OPS
179#endif
180
181 EFL_OPS_DEFINE(ops,
182 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_set, NULL),
183 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_get, NULL),
184 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_set, NULL),
185 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_get, NULL),
186 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_set, NULL),
187 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_get, NULL),
188 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_set, NULL),
189 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_get, NULL),
190 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_set, NULL),
191 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_get, NULL),
192 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_set, NULL),
193 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_get, NULL),
194 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_set, NULL),
195 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_get, NULL),
196 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_set, NULL),
197 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_get, NULL),
198 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_models_get, NULL),
199 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_set, NULL),
200 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_get, NULL),
201 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_set, NULL),
202 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_get, NULL),
203 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_custom_filter_append, NULL),
204 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_filters_clear, NULL),
205 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mime_types_filter_append, NULL),
206 ELM_INTERFACE_FILESELECTOR_EXTRA_OPS
207 );
208 opsp = &ops;
209
210 static const Efl_Object_Property_Reflection refl_table[] = {
211 {"folder_only", __eolian_elm_interface_fileselector_folder_only_set_reflect, __eolian_elm_interface_fileselector_folder_only_get_reflect},
212 {"hidden_visible", __eolian_elm_interface_fileselector_hidden_visible_set_reflect, __eolian_elm_interface_fileselector_hidden_visible_get_reflect},
213 {"multi_select", __eolian_elm_interface_fileselector_multi_select_set_reflect, __eolian_elm_interface_fileselector_multi_select_get_reflect},
214 {"expandable", __eolian_elm_interface_fileselector_expandable_set_reflect, __eolian_elm_interface_fileselector_expandable_get_reflect},
215 {"is_save", __eolian_elm_interface_fileselector_is_save_set_reflect, __eolian_elm_interface_fileselector_is_save_get_reflect},
216 {"current_name", __eolian_elm_interface_fileselector_current_name_set_reflect, __eolian_elm_interface_fileselector_current_name_get_reflect},
217 };
218 static const Efl_Object_Property_Reflection_Ops rops = {
219 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
220 };
221 ropsp = &rops;
222
223 return efl_class_functions_set(klass, opsp, ropsp);
224}
225
226static const Efl_Class_Description _elm_interface_fileselector_class_desc = {
227 EO_VERSION,
228 "Elm.Interface.Fileselector",
229 EFL_CLASS_TYPE_INTERFACE,
230 0,
231 _elm_interface_fileselector_class_initializer,
232 NULL,
233 NULL
234};
235
236EFL_DEFINE_CLASS(elm_interface_fileselector_interface_get, &_elm_interface_fileselector_class_desc, NULL, EFL_UI_VIEW_INTERFACE, NULL);