#ifndef EFL_GENERATED_ECORE_IDLER_HH
#define EFL_GENERATED_ECORE_IDLER_HH

#include <Eo.hh>

#include <eo_cxx_interop.hh>

extern "C"
{
#include "ecore_idler.eo.h"
}

#include <Ecore.h>

namespace ecore { 

struct idler
      : efl::eo::base
{
   /// @brief Eo Constructor.
   ///
   /// Constructs the object from an Eo* pointer stealing its ownership.
   ///
   /// @param eo The Eo object pointer.
   ///
   explicit idler(Eo* eo)
      : efl::eo::base(eo)
   {}

   /// @brief nullptr_t Constructor.
   ///
   /// Constructs an empty (null) object.
   ///
   explicit idler(std::nullptr_t)
      : efl::eo::base(nullptr)
   {}

   idler(efl::eo::parent_type _p = (efl::eo::parent = nullptr))
      : idler(_c0(_p))
   {}

   /// @param func 
   /// @param data 
   ///
   template <typename F>
   idler(F && func_, efl::eo::parent_type _p = (efl::eo::parent = nullptr))
      : idler(_c1(std::forward<F>(func_), _p))
   {}

   /// @brief Copy Constructor.
   ///
   idler(idler const& other)
      : efl::eo::base(eo_ref(other._eo_ptr()))
   {}

   ~idler() {}

   static Eo_Class const* _eo_class()
   {
      return(ECORE_IDLER_CLASS);
   }

private:
   static Eo* _c0(efl::eo::parent_type _p)
   {
      return eo_add_custom(ECORE_IDLER_CLASS, _p._eo_raw, eo_constructor());
   }

   template <typename F>
   static Eo* _c1(F && func_, efl::eo::parent_type _p)
   {
      typedef typename std::remove_reference<F>::type function_type;
function_type* _tmp_f = new F(std::forward<F>(func_));
      return eo_add_custom(ECORE_IDLER_CLASS, _p._eo_raw, ecore_idler_constructor(efl::eolian::get_callback<Ecore_Task_Cb, function_type>(), _tmp_f));
   }

};
} 

namespace efl { namespace eo { namespace detail {

template<>
struct operations< ecore::idler >
{
   template <typename T>
   struct type
   {
   };
};


template<>
struct operation_description_class_size< ecore::idler >
{
   static const int value = 0;
};

template <typename T>
int initialize_operation_description(efl::eo::detail::tag<ecore::idler>
                                 , Eo_Op_Description* ops)
{
   (void)ops;
   return 0;
}
inline void
call_constructor(tag< ecore::idler >
               , Eo* eo, Eo_Class const* cls EINA_UNUSED,
               args_class<ecore::idler, ::std::tuple<> > const& args)
{
   (void)args;
   eo_do_super(eo, cls, ::eo_constructor());
}

inline void
call_constructor(tag< ecore::idler >
               , Eo* eo, Eo_Class const* cls EINA_UNUSED,
               args_class<ecore::idler, ::std::tuple<Ecore_Task_Cb, const void *> > const& args)
{
   (void)args;
   eo_do_super(eo, cls, ::ecore_idler_constructor(::efl::eolian::to_c(args.get<0>()), ::efl::eolian::to_c(args.get<1>())));
}

inline void
call_constructor(tag< ecore::idler >
               , Eo* eo, Eo_Class const* cls EINA_UNUSED,
               args_class<ecore::idler, ::std::tuple<efl::eo::parent_type> > const& args)
{
   eo_do_super(eo, cls, ::eo_constructor());
   eo_do(eo, ::eo_parent_set(args.get<0>()._eo_raw));
}

template<>
struct extension_inheritance< ecore::idler>
{
   template <typename U>
   struct type
   {
      operator ecore::idler() const
      {
         return ecore::idler(eo_ref(static_cast<U const*>(this)->_eo_ptr()));
      }

   };
};

inline Eo_Class const* get_eo_class(tag<ecore::idler>)
{
   return (ECORE_IDLER_CLASS);
}

} } }
#endif // EFL_GENERATED_ECORE_IDLER_HH

