MediaController Class Reference

#include <Phonon/MediaController>

Class Description

Controls optional features of a media file/device like title, chapter, angle.

Author
Matthias Kretz kretz.nosp@m.@kde.nosp@m..org

Definition at line 48 of file mediacontroller.h.

+ Inheritance diagram for MediaController:

Public Types

enum  Feature { Angles = 1, Chapters = 2, Titles = 4 }
 

Public Slots

void setCurrentAngle (int angleNumber)
 
void setCurrentChapter (int chapterNumber)
 
void setCurrentTitle (int titleNumber)
 Skips to the given title titleNumber. More...
 
void setAutoplayTitles (bool)
 
void nextTitle ()
 Skips to the next title. More...
 
void previousTitle ()
 Skips to the previous title. More...
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void availableSubtitlesChanged ()
 
void availableAudioChannelsChanged ()
 
void availableAnglesChanged (int availableAngles)
 
void angleChanged (int angleNumber)
 
void availableChaptersChanged (int availableChapters)
 
void chapterChanged (int chapterNumber)
 
void availableTitlesChanged (int availableTitles)
 
void titleChanged (int titleNumber)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 MediaController (MediaObject *parent)
 
 ~MediaController ()
 
Features supportedFeatures () const
 
int availableAngles () const
 
int currentAngle () const
 
int availableChapters () const
 
int currentChapter () const
 
int availableTitles () const
 
int currentTitle () const
 
bool autoplayTitles () const
 
AudioChannelDescription currentAudioChannel () const
 Returns the selected audio stream. More...
 
SubtitleDescription currentSubtitle () const
 Returns the selected subtitle stream. More...
 
QList< AudioChannelDescriptionavailableAudioChannels () const
 Returns the audio streams that can be selected by the user. More...
 
QList< SubtitleDescriptionavailableSubtitles () const
 Returns the subtitle streams that can be selected by the user. More...
 
void setCurrentAudioChannel (const Phonon::AudioChannelDescription &stream)
 Selects an audio stream from the media. More...
 
void setCurrentSubtitle (const Phonon::SubtitleDescription &stream)
 Selects a subtitle stream from the media. More...
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Attributes

MediaControllerPrivate *const d
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

enum Feature
Enumerator
Angles 
Chapters 
Titles 

Definition at line 53 of file mediacontroller.h.

Constructor & Destructor Documentation

Member Function Documentation

Features supportedFeatures ( ) const
int availableAngles ( ) const
int currentAngle ( ) const
int availableChapters ( ) const
int currentChapter ( ) const
int availableTitles ( ) const
int currentTitle ( ) const
bool autoplayTitles ( ) const
AudioChannelDescription currentAudioChannel ( ) const

Returns the selected audio stream.

See also
availableAudioChannels
setCurrentAudioChannel
SubtitleDescription currentSubtitle ( ) const

Returns the selected subtitle stream.

See also
availableSubtitles
setCurrentSubtitle
QList<AudioChannelDescription> availableAudioChannels ( ) const

Returns the audio streams that can be selected by the user.

The strings can directly be used in the user interface.

See also
selectedAudioChannel
setCurrentAudioChannel
QList<SubtitleDescription> availableSubtitles ( ) const

Returns the subtitle streams that can be selected by the user.

The strings can directly be used in the user interface.

See also
selectedSubtitle
setCurrentSubtitle
void setCurrentAudioChannel ( const Phonon::AudioChannelDescription stream)

Selects an audio stream from the media.

Some media formats allow multiple audio streams to be stored in the same file. Normally only one should be played back.

Parameters
streamDescription of an audio stream
See also
availableAudioChannels()
currentAudioChannel()
void setCurrentSubtitle ( const Phonon::SubtitleDescription stream)

Selects a subtitle stream from the media.

Some media formats allow multiple subtitle streams to be stored in the same file. Normally only one should be displayed.

Parameters
streamdescription of a subtitle stream
See also
availableSubtitles()
currentSubtitle()
void setCurrentAngle ( int  angleNumber)
slot
void setCurrentChapter ( int  chapterNumber)
slot
void setCurrentTitle ( int  titleNumber)
slot

Skips to the given title titleNumber.

If it was playing before the title change it will start playback on the new title if autoplayTitles is enabled.

void setAutoplayTitles ( bool  )
slot
void nextTitle ( )
slot

Skips to the next title.

If it was playing before the title change it will start playback on the next title if autoplayTitles is enabled.

void previousTitle ( )
slot

Skips to the previous title.

If it was playing before the title change it will start playback on the previous title if autoplayTitles is enabled.

void availableSubtitlesChanged ( )
signal
void availableAudioChannelsChanged ( )
signal
void availableAnglesChanged ( int  availableAngles)
signal
void angleChanged ( int  angleNumber)
signal
void availableChaptersChanged ( int  availableChapters)
signal
void chapterChanged ( int  chapterNumber)
signal
void availableTitlesChanged ( int  availableTitles)
signal
void titleChanged ( int  titleNumber)
signal

Member Data Documentation

MediaControllerPrivate* const d
protected

Definition at line 176 of file mediacontroller.h.


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