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

MediaController Class Reference
(Phonon::MediaController)
[Phonon module]

The MediaController class controls optional features of a media file/device. More...

 #include <Phonon>

Inherits QObject.

This class was introduced in Qt 4.4.

Public Types

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The MediaController class controls optional features of a media file/device.

Author: Matthias Kretz <kretz@kde.org>

The MediaController class maintains information about media files and devices, such as title, chapter, angle, and other details.


Member Type Documentation

enum MediaController::Feature
flags MediaController::Features

ConstantValue
Phonon::MediaController::Angles1
Phonon::MediaController::Chapters2
Phonon::MediaController::Titles4

The Features type is a typedef for QFlags<Feature>. It stores an OR combination of Feature values.


Member Function Documentation

MediaController::MediaController ( MediaObject * parent )

Constructs a new MediaController with the specified parent.

MediaController::~MediaController ()

void MediaController::angleChanged ( int angleNumber )   [signal]

This signal is emitted whenever the current angle changes. The new angle number is given by angleNumber.

bool MediaController::autoplayTitles () const

Returns true if titles will automatically be played when the media is played; otherwise returns false.

See also setAutoplayTitles().

int MediaController::availableAngles () const

void MediaController::availableAnglesChanged ( int availableAngles )   [signal]

This signal is emitted whenever the number of available angles changes. The new number of available angles is given by availableAngles.

int MediaController::availableChapters () const

void MediaController::availableChaptersChanged ( int availableChapters )   [signal]

This signal is emitted whenever the number of available chapters changes. The new number of available chapters is given by availableChapters.

int MediaController::availableTitles () const

void MediaController::availableTitlesChanged ( int availableTitles )   [signal]

This signal is emitted whenever the number of available titles changes. The new number of available titles is given by availableTitles.

void MediaController::chapterChanged ( int chapterNumber )   [signal]

This signal is emitted whenever the current chapter changes. The new chapter number is given by chapterNumber.

int MediaController::currentAngle () const

See also setCurrentAngle().

int MediaController::currentChapter () const

See also setCurrentChapter().

int MediaController::currentTitle () const

See also setCurrentTitle().

void MediaController::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 MediaController::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 MediaController::setAutoplayTitles ( bool enable )   [slot]

Sets the titles to play automatically when the media is played if enable is true; otherwise disables the feature.

See also autoplayTitles().

void MediaController::setCurrentAngle ( int angleNumber )   [slot]

Sets the current chapter to the given chapterNumber if the media file or device supports navigation by angle number.

See also currentAngle() and Feature.

void MediaController::setCurrentChapter ( int chapterNumber )   [slot]

Sets the current chapter to the given chapterNumber if the media file or device supports navigation by chapter number.

See also currentChapter() and Feature.

void MediaController::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.

See also currentTitle().

Features MediaController::supportedFeatures () const

void MediaController::titleChanged ( int titleNumber )   [signal]

This signal is emitted whenever the current title changes. The new title number is given by titleNumber.


Copyright © 2008 Trolltech Trademarks
Qt 4.4.0-rc1