// Generated by gmmproc 2.50.1 -- DO NOT MODIFY!


#include <gstreamermmconfig.h>
#ifndef GSTREAMERMM_DISABLE_DEPRECATED


#include <glibmm.h>

#include <gstreamermm/inputselector.h>
#include <gstreamermm/private/inputselector_p.h>


// Generated by generate_plugin_gmmproc_file. Don't edit this file.


extern "C"
{

static GType gst_input_selector_sync_mode_get_type()
{
  static GType const type = g_type_from_name("GstInputSelectorSyncMode");
  return type;
}

GType gst_input_selector_gstreamermm_get_type()
{
  static GType type = 0;
  GstElementFactory* factory = 0;
  GstPluginFeature* feature = 0;

  if(!type)
  {
    factory = gst_element_factory_find("input-selector");
    // Make sure that the feature is actually loaded:
    if(factory)
    {
      feature =
        gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));

      g_object_unref(factory);
      factory = GST_ELEMENT_FACTORY(feature);
      type = gst_element_factory_get_element_type(factory);
      g_object_unref(factory);
    }
  }

  return type;
}

} // extern "C"

namespace Gst
{

InputSelector::InputSelector()
: // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gst::Element(Glib::ConstructParams(inputselector_class_.init(), "name",static_cast<char*>(0), nullptr))
{}

InputSelector::InputSelector(const Glib::ustring& name)
: // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gst::Element(Glib::ConstructParams(inputselector_class_.init(), "name",name.c_str(), nullptr))
{}

}

namespace
{
} // anonymous namespace

// static
GType Glib::Value<Gst::InputSelectorSyncMode>::value_type()
{
  return gst_input_selector_sync_mode_get_type();
}


namespace Glib
{

Glib::RefPtr<Gst::InputSelector> wrap(GstInputSelector* object, bool take_copy)
{
  return Glib::RefPtr<Gst::InputSelector>( dynamic_cast<Gst::InputSelector*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Gst
{


/* The *_Class implementation: */

const Glib::Class& InputSelector_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &InputSelector_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gst_input_selector_gstreamermm_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}


void InputSelector_Class::class_init_function(void* g_class, void* class_data)
{
  const auto klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);


}


Glib::ObjectBase* InputSelector_Class::wrap_new(GObject* object)
{
  return new InputSelector((GstInputSelector*)object);
}


/* The implementation: */

GstInputSelector* InputSelector::gobj_copy()
{
  reference();
  return gobj();
}

InputSelector::InputSelector(const Glib::ConstructParams& construct_params)
:
  Gst::Element(construct_params)
{

}

InputSelector::InputSelector(GstInputSelector* castitem)
:
  Gst::Element((GstElement*)(castitem))
{}


InputSelector::InputSelector(InputSelector&& src) noexcept
: Gst::Element(std::move(src))
{}

InputSelector& InputSelector::operator=(InputSelector&& src) noexcept
{
  Gst::Element::operator=(std::move(src));
  return *this;
}


InputSelector::~InputSelector() noexcept
{}


InputSelector::CppClassType InputSelector::inputselector_class_; // initialize static member

GType InputSelector::get_type()
{
  return inputselector_class_.init().get_type();
}


GType InputSelector::get_base_type()
{
  return gst_input_selector_gstreamermm_get_type();
}


Glib::RefPtr<InputSelector> InputSelector::create()
{
  return Glib::RefPtr<InputSelector>( new InputSelector() );
}

Glib::RefPtr<InputSelector> InputSelector::create(const Glib::ustring& name)
{
  return Glib::RefPtr<InputSelector>( new InputSelector(name) );
}


Glib::PropertyProxy_ReadOnly< guint > InputSelector::property_n_pads() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "n-pads");
}

Glib::PropertyProxy< Glib::RefPtr<Gst::Pad> > InputSelector::property_active_pad() 
{
  return Glib::PropertyProxy< Glib::RefPtr<Gst::Pad> >(this, "active-pad");
}

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Pad> > InputSelector::property_active_pad() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Pad> >(this, "active-pad");
}

Glib::PropertyProxy< bool > InputSelector::property_sync_streams() 
{
  return Glib::PropertyProxy< bool >(this, "sync-streams");
}

Glib::PropertyProxy_ReadOnly< bool > InputSelector::property_sync_streams() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "sync-streams");
}

Glib::PropertyProxy< Gst::InputSelectorSyncMode > InputSelector::property_sync_mode() 
{
  return Glib::PropertyProxy< Gst::InputSelectorSyncMode >(this, "sync-mode");
}

Glib::PropertyProxy_ReadOnly< Gst::InputSelectorSyncMode > InputSelector::property_sync_mode() const
{
  return Glib::PropertyProxy_ReadOnly< Gst::InputSelectorSyncMode >(this, "sync-mode");
}

Glib::PropertyProxy< bool > InputSelector::property_cache_buffers() 
{
  return Glib::PropertyProxy< bool >(this, "cache-buffers");
}

Glib::PropertyProxy_ReadOnly< bool > InputSelector::property_cache_buffers() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "cache-buffers");
}


} // namespace Gst

#endif // GSTREAMERMM_DISABLE_DEPRECATED


