QtGStreamer  1.2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
QGst::Element Class Reference

#include <QGst/Element>

Inheritance diagram for QGst::Element:
Inheritance graph
[legend]
Collaboration diagram for QGst::Element:
Collaboration graph
[legend]

Public Member Functions

State currentState () const
 
State pendingState () const
 
StateChangeReturn getState (State *state, State *pending, ClockTime timeout) const
 
StateChangeReturn setState (State state)
 
bool syncStateWithParent ()
 
bool stateIsLocked () const
 
bool setStateLocked (bool locked)
 
bool addPad (const PadPtr &pad)
 
bool removePad (const PadPtr &pad)
 
PadPtr getStaticPad (const char *name)
 
PadPtr getRequestPad (const char *name)
 
void releaseRequestPad (const PadPtr &pad)
 
ClockPtr clock () const
 
bool setClock (const ClockPtr &clock)
 
bool link (const char *srcPadName, const ElementPtr &dest, const char *sinkPadName, const CapsPtr &filter=CapsPtr())
 
bool link (const char *srcPadName, const ElementPtr &dest, const CapsPtr &filter=CapsPtr())
 
bool link (const ElementPtr &dest, const char *sinkPadName, const CapsPtr &filter=CapsPtr())
 
bool link (const ElementPtr &dest, const CapsPtr &filter=CapsPtr())
 
void unlink (const char *srcPadName, const ElementPtr &dest, const char *sinkPadName)
 
void unlink (const ElementPtr &dest)
 
bool query (const QueryPtr &query)
 
bool sendEvent (const EventPtr &event)
 
bool seek (Format format, SeekFlags flags, quint64 position)
 
- Public Member Functions inherited from QGst::Object
QString name () const
 
bool setName (const char *name)
 
ObjectPtr parent () const
 
bool setParent (const ObjectPtr &parent)
 
void unparent ()
 
bool isAncestorOf (const ObjectPtr &object) const
 
QString pathString () const
 
- Public Member Functions inherited from QGlib::ObjectBase
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)
 

Static Public Member Functions

template<typename First , typename Second , typename Third , typename... Rest>
static bool linkMany (const First &first, const Second &second, const Third &third, const Rest &...rest)
 
template<typename First , typename Second , typename Third , typename... Rest>
static void unlinkMany (const First &first, const Second &second, const Third &third, const Rest &...rest)
 

Additional Inherited Members

- Protected Member Functions inherited from QGst::Object
virtual void ref (bool increaseRef)
 
virtual void unref ()
 
- Protected Member Functions inherited from QGlib::RefCountedObject
template<class T >
T * object () const
 
- Protected Attributes inherited from QGlib::RefCountedObject
void * m_object
 

Detailed Description

Wrapper class for GstElement.

Definition at line 33 of file element.h.

Member Function Documentation

void QGst::Element::unlink ( const char *  srcPadName,
const ElementPtr dest,
const char *  sinkPadName 
)

Unlinks the pad named srcPadName of this element from the pad named sinkPadName of the dest element.

Definition at line 124 of file element.cpp.

void QGst::Element::unlink ( const ElementPtr dest)

Unlinks this element from the dest element

template<typename First , typename Second , typename Third , typename... Rest>
static bool QGst::Element::linkMany ( const First &  first,
const Second &  second,
const Third &  third,
const Rest &...  rest 
)
inlinestatic

Links together a series of elements in the order that they are provided.

Note
This function makes use of C++0x features. If your compiler doesn't support this, a different version will be compiled. That version supports up to QGST_ELEMENT_LINK_MANY_MAX_ARGS arguments, which defaults to 10. If you need more, define this to a greater value before including any QtGStreamer headers.

Definition at line 102 of file element.h.

template<typename First , typename Second , typename Third , typename... Rest>
static void QGst::Element::unlinkMany ( const First &  first,
const Second &  second,
const Third &  third,
const Rest &...  rest 
)
inlinestatic

Unlinks a chain of elements.

Note
This function makes use of C++0x features. If your compiler doesn't support this, a different version will be compiled. That version supports up to QGST_ELEMENT_UNLINK_MANY_MAX_ARGS arguments, which defaults to 10. If you need more, define this to a greater value before including any QtGStreamer headers.

Definition at line 116 of file element.h.


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