QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions
QGst::Element Class Reference

#include <QGst/Element>

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

List of all members.

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)

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)

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 125 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 
) [inline, static]

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 
) [inline, static]

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: