
Eina_Error _efl_ui_view_model_property_string_add(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *name, const char *definition, const char *not_ready, const char *on_error);

EAPI EAPI_WEAK EFL_FUNC_BODYV(efl_ui_view_model_property_string_add, Eina_Error, 0, EFL_FUNC_CALL(name, definition, not_ready, on_error), const char *name, const char *definition, const char *not_ready, const char *on_error);

Eina_Error _efl_ui_view_model_property_string_del(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *name);

EAPI EAPI_WEAK EFL_FUNC_BODYV(efl_ui_view_model_property_string_del, Eina_Error, 0, EFL_FUNC_CALL(name), const char *name);

Eina_Error _efl_ui_view_model_property_logic_add(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *property, void *get_data, EflUiViewModelPropertyGet get, Eina_Free_Cb get_free_cb, void *set_data, EflUiViewModelPropertySet set, Eina_Free_Cb set_free_cb, Eina_Iterator *bound);

static void
_efl_ui_view_model_property_logic_add_ownership_fallback(const char *property, void *get_data, EflUiViewModelPropertyGet get, Eina_Free_Cb get_free_cb, void *set_data, EflUiViewModelPropertySet set, Eina_Free_Cb set_free_cb, Eina_Iterator *bound)
{
   (void)property;
   (void)get;
   (void)get_data;
   (void)get_free_cb;
   (void)set;
   (void)set_data;
   (void)set_free_cb;
   eina_iterator_free(bound);
}

EAPI EAPI_WEAK EFL_FUNC_BODYV_FALLBACK(efl_ui_view_model_property_logic_add, Eina_Error, 0, _efl_ui_view_model_property_logic_add_ownership_fallback(property, get_data, get, get_free_cb, set_data, set, set_free_cb, bound);, EFL_FUNC_CALL(property, get_data, get, get_free_cb, set_data, set, set_free_cb, bound), const char *property, void *get_data, EflUiViewModelPropertyGet get, Eina_Free_Cb get_free_cb, void *set_data, EflUiViewModelPropertySet set, Eina_Free_Cb set_free_cb, Eina_Iterator *bound);

Eina_Error _efl_ui_view_model_property_logic_del(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *property);

EAPI EAPI_WEAK EFL_FUNC_BODYV(efl_ui_view_model_property_logic_del, Eina_Error, 0, EFL_FUNC_CALL(property), const char *property);

void _efl_ui_view_model_property_bind(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *source, const char *destination);

EAPI EAPI_WEAK EFL_VOID_FUNC_BODYV(efl_ui_view_model_property_bind, EFL_FUNC_CALL(source, destination), const char *source, const char *destination);

void _efl_ui_view_model_property_unbind(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *source, const char *destination);

EAPI EAPI_WEAK EFL_VOID_FUNC_BODYV(efl_ui_view_model_property_unbind, EFL_FUNC_CALL(source, destination), const char *source, const char *destination);

void _efl_ui_view_model_children_bind_set(Eo *obj, Efl_Ui_View_Model_Data *pd, Eina_Bool enable);


static Eina_Error
__eolian_efl_ui_view_model_children_bind_set_reflect(Eo *obj, Eina_Value val)
{
   Eina_Error r = 0;   Eina_Bool cval;
   if (!eina_value_bool_convert(&val, &cval))
      {
         r = EINA_ERROR_VALUE_FAILED;
         goto end;
      }
   efl_ui_view_model_children_bind_set(obj, cval);
 end:
   eina_value_flush(&val);
   return r;
}

EAPI EAPI_WEAK EFL_VOID_FUNC_BODYV(efl_ui_view_model_children_bind_set, EFL_FUNC_CALL(enable), Eina_Bool enable);

Eina_Bool _efl_ui_view_model_children_bind_get(const Eo *obj, Efl_Ui_View_Model_Data *pd);


static Eina_Value
__eolian_efl_ui_view_model_children_bind_get_reflect(const Eo *obj)
{
   Eina_Bool val = efl_ui_view_model_children_bind_get(obj);
   return eina_value_bool_init(val);
}

EAPI EAPI_WEAK EFL_FUNC_BODY_CONST(efl_ui_view_model_children_bind_get, Eina_Bool, 0);

Efl_Object *_efl_ui_view_model_efl_object_constructor(Eo *obj, Efl_Ui_View_Model_Data *pd);


Efl_Object *_efl_ui_view_model_efl_object_finalize(Eo *obj, Efl_Ui_View_Model_Data *pd);


void _efl_ui_view_model_efl_object_destructor(Eo *obj, Efl_Ui_View_Model_Data *pd);


Eina_Future *_efl_ui_view_model_efl_model_children_slice_get(Eo *obj, Efl_Ui_View_Model_Data *pd, unsigned int start, unsigned int count);


Eina_Iterator *_efl_ui_view_model_efl_model_properties_get(const Eo *obj, Efl_Ui_View_Model_Data *pd);


Eina_Future *_efl_ui_view_model_efl_model_property_set(Eo *obj, Efl_Ui_View_Model_Data *pd, const char *property, Eina_Value *value);


Eina_Value *_efl_ui_view_model_efl_model_property_get(const Eo *obj, Efl_Ui_View_Model_Data *pd, const char *property);


static Eina_Bool
_efl_ui_view_model_class_initializer(Efl_Class *klass)
{
   const Efl_Object_Ops *opsp = NULL;

   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;

#ifndef EFL_UI_VIEW_MODEL_EXTRA_OPS
#define EFL_UI_VIEW_MODEL_EXTRA_OPS
#endif

   EFL_OPS_DEFINE(ops,
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_string_add, _efl_ui_view_model_property_string_add),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_string_del, _efl_ui_view_model_property_string_del),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_logic_add, _efl_ui_view_model_property_logic_add),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_logic_del, _efl_ui_view_model_property_logic_del),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_bind, _efl_ui_view_model_property_bind),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_property_unbind, _efl_ui_view_model_property_unbind),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_children_bind_set, _efl_ui_view_model_children_bind_set),
      EFL_OBJECT_OP_FUNC(efl_ui_view_model_children_bind_get, _efl_ui_view_model_children_bind_get),
      EFL_OBJECT_OP_FUNC(efl_constructor, _efl_ui_view_model_efl_object_constructor),
      EFL_OBJECT_OP_FUNC(efl_finalize, _efl_ui_view_model_efl_object_finalize),
      EFL_OBJECT_OP_FUNC(efl_destructor, _efl_ui_view_model_efl_object_destructor),
      EFL_OBJECT_OP_FUNC(efl_model_children_slice_get, _efl_ui_view_model_efl_model_children_slice_get),
      EFL_OBJECT_OP_FUNC(efl_model_properties_get, _efl_ui_view_model_efl_model_properties_get),
      EFL_OBJECT_OP_FUNC(efl_model_property_set, _efl_ui_view_model_efl_model_property_set),
      EFL_OBJECT_OP_FUNC(efl_model_property_get, _efl_ui_view_model_efl_model_property_get),
      EFL_UI_VIEW_MODEL_EXTRA_OPS
   );
   opsp = &ops;

   static const Efl_Object_Property_Reflection refl_table[] = {
      {"children_bind", __eolian_efl_ui_view_model_children_bind_set_reflect, __eolian_efl_ui_view_model_children_bind_get_reflect},
   };
   static const Efl_Object_Property_Reflection_Ops rops = {
      refl_table, EINA_C_ARRAY_LENGTH(refl_table)
   };
   ropsp = &rops;

   return efl_class_functions_set(klass, opsp, ropsp);
}

static const Efl_Class_Description _efl_ui_view_model_class_desc = {
   EO_VERSION,
   "Efl.Ui.View_Model",
   EFL_CLASS_TYPE_REGULAR,
   sizeof(Efl_Ui_View_Model_Data),
   _efl_ui_view_model_class_initializer,
   NULL,
   NULL
};

EFL_DEFINE_CLASS(efl_ui_view_model_class_get, &_efl_ui_view_model_class_desc, EFL_COMPOSITE_MODEL_CLASS, NULL);
