#include <propertyprobe.h>
Public Member Functions | |
virtual | ~PropertyProbe () |
GstPropertyProbe* | gobj () |
Provides access to the underlying C GObject. | |
const GstPropertyProbe* | gobj () const |
Provides access to the underlying C GObject. | |
const GList* | get_properties () const |
Get a list of properties for which probing is supported. | |
const GParamSpec* | get_property (const Glib::ustring& name) const |
Get ParamSpec for a property for which probing is supported. | |
Glib::ValueArray | get_values (const GParamSpec* pspec) const |
Gets the possible (probed) values for the given property, requires the property to have been probed before. | |
Glib::ValueArray | get_values (const Glib::ustring& name) const |
Same as gst_property_probe_get_values(). | |
bool | needs_probe (const GParamSpec* pspec) const |
Checks whether a property needs a probe. | |
bool | needs_probe (const Glib::ustring& name) const |
Same as gst_property_probe_needs_probe(). | |
Glib::ValueArray | probe_and_get_values (const GParamSpec* pspec) |
Check whether the given property requires a new probe. | |
Glib::ValueArray | probe_and_get_values (const Glib::ustring& name) |
Same as gst_property_probe_probe_and_get_values(). | |
void | probe_property (const GParamSpec* pspec) |
Runs a probe on the property specified by pspec. | |
void | probe_property (const Glib::ustring& name) |
Runs a probe on the property specified by name. | |
Glib::SignalProxy1< void, const GParamSpec* > | signal_probe_needed () |
virtual const GList* | get_properties_vfunc () const |
virtual bool | needs_probe_vfunc (guint prop_id, const GParamSpec* pspec) const |
virtual void | probe_property_vfunc (guint prop_id, const GParamSpec* pspec) |
virtual Glib::ValueArray | get_values_vfunc (guint prop_id, const GParamSpec* pspec) const |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual void | on_probe_needed (const GParamSpec* pspec) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gst::PropertyProbe> | wrap (GstPropertyProbe* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
The property probe is a way to autodetect allowed values for a GObject property. Its primary use is to autodetect device-names in several elements.
The interface is implemented by many hardware sources and sinks.
virtual Gst::PropertyProbe::~PropertyProbe | ( | ) | [virtual] |
static void Gst::PropertyProbe::add_interface | ( | GType | gtype_implementer | ) | [static] |
const GList* Gst::PropertyProbe::get_properties | ( | ) | const |
Get a list of properties for which probing is supported.
virtual const GList* Gst::PropertyProbe::get_properties_vfunc | ( | ) | const [virtual] |
const GParamSpec* Gst::PropertyProbe::get_property | ( | const Glib::ustring & | name | ) | const |
Get ParamSpec for a property for which probing is supported.
name | Name of the property. |
0
. Glib::ValueArray Gst::PropertyProbe::get_values | ( | const Glib::ustring & | name | ) | const |
Same as gst_property_probe_get_values().
name | The name of the property to get values for. |
Glib::ValueArray Gst::PropertyProbe::get_values | ( | const GParamSpec * | pspec | ) | const |
Gets the possible (probed) values for the given property, requires the property to have been probed before.
pspec | The ParamSpec property identifier. |
virtual Glib::ValueArray Gst::PropertyProbe::get_values_vfunc | ( | guint | prop_id, | |
const GParamSpec * | pspec | |||
) | const [virtual] |
const GstPropertyProbe* Gst::PropertyProbe::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented in Gst::AlsaMixer, Gst::AlsaSink, Gst::AlsaSrc, and Gst::XvImageSink.
GstPropertyProbe* Gst::PropertyProbe::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented in Gst::AlsaMixer, Gst::AlsaSink, Gst::AlsaSrc, and Gst::XvImageSink.
bool Gst::PropertyProbe::needs_probe | ( | const Glib::ustring & | name | ) | const |
Same as gst_property_probe_needs_probe().
name | The name of the property to check. |
true
if the property needs a new probe, false
if not. bool Gst::PropertyProbe::needs_probe | ( | const GParamSpec * | pspec | ) | const |
Checks whether a property needs a probe.
This might be because the property wasn't initialized before, or because host setup changed. This might be, for example, because a new device was added, and thus device probing needs to be refreshed to display the new device.
pspec | A ParamSpec that identifies the property to check. |
true
if the property needs a new probe, false
if not. virtual bool Gst::PropertyProbe::needs_probe_vfunc | ( | guint | prop_id, | |
const GParamSpec * | pspec | |||
) | const [virtual] |
virtual void Gst::PropertyProbe::on_probe_needed | ( | const GParamSpec * | pspec | ) | [protected, virtual] |
Glib::ValueArray Gst::PropertyProbe::probe_and_get_values | ( | const Glib::ustring & | name | ) |
Same as gst_property_probe_probe_and_get_values().
name | The name of the property to get values for. |
Glib::ValueArray Gst::PropertyProbe::probe_and_get_values | ( | const GParamSpec * | pspec | ) |
Check whether the given property requires a new probe.
If so, fo the probe. After that, retrieve a value list. Meant as a utility function that wraps the above functions.
pspec | The ParamSpec property identifier. |
void Gst::PropertyProbe::probe_property | ( | const Glib::ustring & | name | ) |
Runs a probe on the property specified by name.
name | Name of the property. |
void Gst::PropertyProbe::probe_property | ( | const GParamSpec * | pspec | ) |
Runs a probe on the property specified by pspec.
pspec | ParamSpec of the property. |
virtual void Gst::PropertyProbe::probe_property_vfunc | ( | guint | prop_id, | |
const GParamSpec * | pspec | |||
) | [virtual] |
Glib::SignalProxy1< void,const GParamSpec* > Gst::PropertyProbe::signal_probe_needed | ( | ) |
void on_my_probe_needed(const GParamSpec* pspec)
Glib::RefPtr<Gst::PropertyProbe> wrap | ( | GstPropertyProbe * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |