18 #include "../QGlib/string_p.h"
23 QString Object::name()
const
25 return QGlib::Private::stringFromGCharPtr(gst_object_get_name(object<GstObject>()));
28 bool Object::setName(
const char *name)
30 return gst_object_set_name(object<GstObject>(), name);
33 ObjectPtr Object::parent()
const
35 return ObjectPtr::wrap(gst_object_get_parent(object<GstObject>()),
false);
38 bool Object::setParent(
const ObjectPtr & parent)
40 return gst_object_set_parent(object<GstObject>(), parent);
43 void Object::unparent()
45 gst_object_unparent(object<GstObject>());
48 bool Object::isAncestorOf(
const ObjectPtr & obj)
const
50 return gst_object_has_ancestor(obj, object<GstObject>());
53 QString Object::pathString()
const
55 return QGlib::Private::stringFromGCharPtr(gst_object_get_path_string(object<GstObject>()));
58 void Object::ref(
bool increaseRef)
61 gst_object_ref(m_object);
67 gst_object_unref(m_object);
static RefPointer< T > wrap(typename T::CType *nativePtr, bool increaseRef=true)
Wrappers for GStreamer classes.