17 #include "childproxy.h"
18 #include <gst/gstobject.h>
19 #include <gst/gstchildproxy.h>
23 uint ChildProxy::childrenCount()
const
25 return gst_child_proxy_get_children_count(object<GstChildProxy>());
28 ObjectPtr ChildProxy::childByName(
const char *name)
const
30 return ObjectPtr::wrap(gst_child_proxy_get_child_by_name(object<GstChildProxy>(), name),
false);
33 ObjectPtr ChildProxy::childByIndex(uint index)
const
35 return ObjectPtr::wrap(gst_child_proxy_get_child_by_index(object<GstChildProxy>(), index),
false);
38 bool ChildProxy::findChildProperty(
const char *name, ObjectPtr *obj,
QGlib::ParamSpecPtr *paramSpec)
const
42 bool result = gst_child_proxy_lookup(object<GstObject>(), name, &op, &pp);
50 QGlib::Value ChildProxy::childProperty(
const char *name)
const
54 if (findChildProperty(name, &
object, ¶m)) {
55 return object->property(param->name().toUtf8());