QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions
QGlib::ObjectBase Class Reference

#include <QGlib/Object>

Inheritance diagram for QGlib::ObjectBase:
Inheritance graph
[legend]
Collaboration diagram for QGlib::ObjectBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

ParamSpecPtr findProperty (const char *name) const
QList< ParamSpecPtrlistProperties () 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 ()

Detailed Description

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.

Definition at line 38 of file object.h.


Member Function Documentation

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.

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.

template<class T >
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.

Examples:
examples/qmlplayer/main.cpp.

Definition at line 106 of file object.h.

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.


The documentation for this class was generated from the following files: