/* gstreamermm - a C++ wrapper for gstreamer
 *
 * Copyright 2008 The gstreamermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gstreamermm/basetransform.h>
#include <gstreamermm/buffer.h>
_DEFS(gstreamermm,gst)

namespace Gst
{


/** Gst::Identity - identity plugin.
 * Please include <gstreamermm/identity.h> to use.  Please note that, though
 * using the underlying GObject is fine, using its C <B>type</B> is not
 * guaranteed to be API stable across releases because it is not guaranteed to
 * always remain the same.  Also, not all plug-ins are available on all systems
 * and the ones that aren't available are not included in the build.
 *
 * @ingroup GstPlugins
 */
class Identity
: public Gst::BaseTransform
{
  _CLASS_GOBJECT(Identity, GstIdentity, GST_IDENTITY, Gst::BaseTransform, GstBaseTransform)

  _IS_GSTREAMERMM_PLUGIN

protected:
  Identity();
  Identity(const Glib::ustring& name);

public:
/** Creates a new identity plugin with a unique name.
 */
  _WRAP_CREATE()

/** Creates a new identity plugin with the given name.
 */
  _WRAP_CREATE(const Glib::ustring& name)

  _WRAP_PROPERTY("sleep-time", guint)
  _WRAP_PROPERTY("error-after", int)
  _WRAP_PROPERTY("drop-probability", float)
  _WRAP_PROPERTY("datarate", int)
  _WRAP_PROPERTY("silent", bool)
  _WRAP_PROPERTY("single-segment", bool)
  _WRAP_PROPERTY("last-message", Glib::ustring)
  _WRAP_PROPERTY("dump", bool)
  _WRAP_PROPERTY("sync", bool)
  _WRAP_PROPERTY("check-perfect", bool)
  _WRAP_PROPERTY("check-imperfect-timestamp", bool)
  _WRAP_PROPERTY("check-imperfect-offset", bool)
  _WRAP_PROPERTY("signal-handoffs", bool)

#m4 _CONVERSION(`GstBuffer*', `const Glib::RefPtr<Gst::Buffer>&', `Gst::wrap($3, true)')
  _WRAP_SIGNAL(void handoff(const Glib::RefPtr<Gst::Buffer>& arg0), "handoff")
};

} //namespace Gst
