QtGStreamer
1.2.0
|
#include <QGlib/Object>
Public Member Functions | |
ParamSpecPtr | findProperty (const char *name) const |
QList< ParamSpecPtr > | listProperties () const |
Value | property (const char *name) const |
template<class T > | |
void | setProperty (const char *name, const T &value) |
void | setProperty (const char *name, const Value &value) |
void * | data (const char *key) const |
void * | stealData (const char *key) const |
void | setData (const char *key, void *data, void(*destroyCallback)(void *)=NULL) |
void * | quarkData (const Quark &quark) const |
void * | stealQuarkData (const Quark &quark) const |
void | setQuarkData (const Quark &quark, void *data, void(*destroyCallback)(void *)=NULL) |
Protected Member Functions | |
virtual void | ref (bool increaseRef) |
virtual void | unref () |
![]() | |
template<class T > | |
T * | object () const |
Additional Inherited Members | |
![]() | |
void * | m_object |
Common virtual base class for Object and Interface.
This class is an implementation detail that serves only in code reuse between the Object and Interface classes. You should not use this class directly at all. Use Object or Interface instead.
ParamSpecPtr QGlib::ObjectBase::findProperty | ( | const char * | name | ) | const |
Finds the property with the given name and returns a ParamSpec that describes it. If the property cannot be found, a null ParamSpecPtr will be returned.
Definition at line 39 of file object.cpp.
QList< ParamSpecPtr > QGlib::ObjectBase::listProperties | ( | ) | const |
Returns a list with all the properties that the class of this instance supports.
Definition at line 51 of file object.cpp.
Value QGlib::ObjectBase::property | ( | const char * | name | ) | const |
Returns the value of the property with the given name as a Value object. If the property is not found, an invalid Value will be returned.
Definition at line 62 of file object.cpp.
void QGlib::ObjectBase::setProperty | ( | const char * | name, |
const T & | value | ||
) |
Sets the property with the given name to hold the given value. value is automatically converted to the type that this property expects using the Value::set() template method.
void QGlib::ObjectBase::setProperty | ( | const char * | name, |
const Value & | value | ||
) |
Sets the property with the given name to hold the given value. value must have exactly the same type that the property expects, otherwise this call will fail. Normally, you should use the template version of setProperty() instead of this function.
Definition at line 73 of file object.cpp.