Qt 4.5: MediaObject Class Reference

|  | Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# MediaObject Class Reference
(Phonon::Gstreamer::MediaObject)

Inherits QObject, MediaNode, QObject, and MediaNode.

- List of all members, including inherited members

### Public Functions

- MediaObject ( Backend * backend, QObject * parent )
- ~MediaObject ()
- void addMissingCodecName ( const QString & codec )
- bool audioAvailable ()
- GstElement * audioGraph ()
- gulong capsHandler ()
- void connectAudio ( GstPad * audioPad )
- void connectVideo ( GstPad * videoPad )
- virtual qint64 currentTime () const
- virtual QString errorString () const
- virtual Phonon::ErrorType errorType () const
- void handleBusMessage ( const Message & msg )
- void handleEndOfStream ()
- virtual bool hasInterface ( Interface ) const
- virtual bool hasVideo () const
- virtual QVariant interfaceCall ( Interface, int, const QList<QVariant> & )
- void invalidateGraph ()
- bool isLoading ()
- virtual bool isSeekable () const
- virtual void pause ()
- GstElement * pipeline ()
- virtual void play ()
- virtual qint32 prefinishMark () const
- virtual qint64 remainingTime () const
- void resumeState ()
- void saveState ()
- virtual void seek ( qint64 time )
- virtual void setNextSource ( const MediaSource & source )
- virtual void setPrefinishMark ( qint32 newPrefinishMark )
- virtual void setSource ( const MediaSource & source )
- virtual void setTickInterval ( qint32 newTickInterval )
- virtual void setTransitionTime ( qint32 )
- virtual MediaSource source () const
- virtual Phonon::State state () const
- virtual void stop ()
- virtual qint32 tickInterval () const
- virtual qint64 totalTime () const
- virtual qint32 transitionTime () const
- QUrl url () const
- bool videoAvailable ()
- GstElement * videoGraph ()

- 29 public functions inherited from QObject
- 15 public functions inherited from Phonon::Gstreamer::MediaNode
- 29 public functions inherited from QObject
- 15 public functions inherited from Phonon::Gstreamer::MediaNode

### Public Slots

- void setState ( State )

- 2 public slots inherited from QObject

### Signals

- void aboutToFinish ()
- void bufferStatus ( int percentFilled )
- void currentSourceChanged ( const MediaSource & newSource )
- void finished ()
- void hasVideoChanged ( bool )
- QMultiMap<QString, QString> metaData ()
- void metaDataChanged ( QMultiMap<QString, QString> )
- void prefinishMarkReached ( qint32 )
- void seekableChanged ( bool )
- void setMetaData ( QMultiMap<QString, QString> newData )
- void stateChanged ( Phonon::State newstate, Phonon::State oldstate )
- void tick ( qint64 time )
- void totalTimeChanged ( qint64 length )

- 2 signals inherited from QObject

### Static Public Members

- void cb_newpad ( GstElement * decodebin, GstPad * pad, gboolean last, gpointer data )
- void cb_no_more_pads ( GstElement * decodebin, gpointer data )
- void cb_unknown_type ( GstElement * decodebin, GstPad * pad, GstCaps * caps, gpointer data )

- 10 static public members inherited from QObject

### Protected Functions

- virtual GstElement * audioElement ()
- void beginLoad ()
- void changeState ( State )
- bool createPipefromStream ( const MediaSource & )
- bool createPipefromURL ( const QString & encodedUrl )
- void loadingComplete ()
- void newPadAvailable ( GstPad * pad )
- void setError ( const QString & errorString, Phonon::ErrorType error = NormalError )
- virtual GstElement * videoElement ()

- 7 protected functions inherited from QObject
- 4 protected functions inherited from Phonon::Gstreamer::MediaNode
- 7 protected functions inherited from QObject
- 4 protected functions inherited from Phonon::Gstreamer::MediaNode

### Additional Inherited Members

- 2 properties inherited from QObject

## Member Function Documentation

### MediaObject::MediaObject ( Backend * backend, QObject * parent )

### MediaObject::~MediaObject ()

### void MediaObject::aboutToFinish () `[signal]`

### void MediaObject::addMissingCodecName ( const QString & codec )

### bool MediaObject::audioAvailable ()

### GstElement * MediaObject::audioElement () `[virtual protected]`

### GstElement * MediaObject::audioGraph ()

### void MediaObject::beginLoad () `[protected]`

### void MediaObject::bufferStatus ( int percentFilled ) `[signal]`

### gulong MediaObject::capsHandler ()

### void MediaObject::cb_newpad ( GstElement * decodebin, GstPad * pad, gboolean last, gpointer data ) `[static]`

### void MediaObject::cb_no_more_pads ( GstElement * decodebin, gpointer data ) `[static]`

### void MediaObject::cb_unknown_type ( GstElement * decodebin, GstPad * pad, GstCaps * caps, gpointer data ) `[static]`

### void MediaObject::changeState ( State ) `[protected]`

### void MediaObject::connectAudio ( GstPad * audioPad )

### void MediaObject::connectVideo ( GstPad * videoPad )

### bool MediaObject::createPipefromStream ( const MediaSource & ) `[protected]`

### bool MediaObject::createPipefromURL ( const QString & encodedUrl ) `[protected]`

### void MediaObject::currentSourceChanged ( const MediaSource & newSource ) `[signal]`

### qint64 MediaObject::currentTime () const `[virtual]`

### QString MediaObject::errorString () const `[virtual]`

### Phonon::ErrorType MediaObject::errorType () const `[virtual]`

### void MediaObject::finished () `[signal]`

### void MediaObject::handleBusMessage ( const Message & msg )

### void MediaObject::handleEndOfStream ()

### bool MediaObject::hasInterface ( Interface ) const `[virtual]`

### bool MediaObject::hasVideo () const `[virtual]`

### void MediaObject::hasVideoChanged ( bool ) `[signal]`

### QVariant MediaObject::interfaceCall ( Interface, int, const QList<QVariant> & ) `[virtual]`

### void MediaObject::invalidateGraph ()

### bool MediaObject::isLoading ()

### bool MediaObject::isSeekable () const `[virtual]`

### void MediaObject::loadingComplete () `[protected]`

### QMultiMap<QString, QString> MediaObject::metaData () `[signal]`

See also setMetaData().

### void MediaObject::metaDataChanged ( QMultiMap<QString, QString> ) `[signal]`

### void MediaObject::newPadAvailable ( GstPad * pad ) `[protected]`

### void MediaObject::pause () `[virtual]`

### GstElement * MediaObject::pipeline ()

### void MediaObject::play () `[virtual]`

### qint32 MediaObject::prefinishMark () const `[virtual]`

See also setPrefinishMark().

### void MediaObject::prefinishMarkReached ( qint32 ) `[signal]`

### qint64 MediaObject::remainingTime () const `[virtual]`

### void MediaObject::resumeState ()

### void MediaObject::saveState ()

### void MediaObject::seek ( qint64 time ) `[virtual]`

### void MediaObject::seekableChanged ( bool ) `[signal]`

### void MediaObject::setError ( const QString & errorString, Phonon::ErrorType error = NormalError ) `[protected]`

### void MediaObject::setMetaData ( QMultiMap<QString, QString> newData ) `[signal]`

See also metaData().

### void MediaObject::setNextSource ( const MediaSource & source ) `[virtual]`

### void MediaObject::setPrefinishMark ( qint32 newPrefinishMark ) `[virtual]`

See also prefinishMark().

### void MediaObject::setSource ( const MediaSource & source ) `[virtual]`

See also source().

### void MediaObject::setState ( State ) `[slot]`

See also state().

### void MediaObject::setTickInterval ( qint32 newTickInterval ) `[virtual]`

See also tickInterval().

### void MediaObject::setTransitionTime ( qint32 ) `[virtual]`

See also transitionTime().

### MediaSource MediaObject::source () const `[virtual]`

See also setSource().

### Phonon::State MediaObject::state () const `[virtual]`

See also setState().

### void MediaObject::stateChanged ( Phonon::State newstate, Phonon::State oldstate ) `[signal]`

### void MediaObject::stop () `[virtual]`

### void MediaObject::tick ( qint64 time ) `[signal]`

### qint32 MediaObject::tickInterval () const `[virtual]`

See also setTickInterval().

### qint64 MediaObject::totalTime () const `[virtual]`

### void MediaObject::totalTimeChanged ( qint64 length ) `[signal]`

### qint32 MediaObject::transitionTime () const `[virtual]`

See also setTransitionTime().

### QUrl MediaObject::url () const

### bool MediaObject::videoAvailable ()

### GstElement * MediaObject::videoElement () `[virtual protected]`

### GstElement * MediaObject::videoGraph ()