Home · All Classes · All Functions ·

QMediaPlaylistNavigator Class Reference

The QMediaPlaylistNavigator class provides navigation for a media playlist. More...

    #include <QMediaPlaylistNavigator>

This class is under development and is subject to change.

Inherits QObject.

Properties

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QMediaPlaylistNavigator class provides navigation for a media playlist.

See also QMediaPlaylist and QMediaPlaylistProvider.


Property Documentation

currentIndex : int

Contains the position of the current media.

If no media is current, the property contains -1.

Access functions:

See also nextIndex() and previousIndex().

currentItem : const QMediaContent

Contains the media at the current position in the playlist.

Access functions:

See also currentIndex().

playbackMode : QMediaPlaylist::PlaybackMode

Contains the playback mode.

Access functions:


Member Function Documentation

QMediaPlaylistNavigator::QMediaPlaylistNavigator ( QMediaPlaylistProvider * playlist, QObject * parent = 0 )

Constructs a media playlist navigator for a playlist.

The parent is passed to QObject.

QMediaPlaylistNavigator::~QMediaPlaylistNavigator ()   [virtual]

Destroys a media playlist navigator.

void QMediaPlaylistNavigator::activated ( const QMediaContent & media )   [signal]

Signals that the current media has changed.

void QMediaPlaylistNavigator::currentIndexChanged ( int position )   [signal]

Signals the position of the current media has changed.

QMediaContent QMediaPlaylistNavigator::itemAt ( int position ) const

Returns the media at a position in the playlist.

void QMediaPlaylistNavigator::next ()   [slot]

Advances to the next item in the playlist.

See also previous(), jump(), and playbackMode().

int QMediaPlaylistNavigator::nextIndex ( int steps = 1 ) const

Returns a position steps ahead of the current position accounting for the playbackMode().

If the position is beyond the end of the playlist, this value returned is -1.

See also currentIndex(), previousIndex(), and playbackMode().

QMediaContent QMediaPlaylistNavigator::nextItem ( int steps = 1 ) const

Returns the media that is steps positions ahead of the current position in the playlist.

See also nextIndex().

void QMediaPlaylistNavigator::playbackModeChanged ( QMediaPlaylist::PlaybackMode mode )   [signal]

Signals that the playback mode has changed.

QMediaPlaylistProvider * QMediaPlaylistNavigator::playlist () const

Returns the playlist being navigated.

See also setPlaylist().

void QMediaPlaylistNavigator::previous ()   [slot]

Returns to the previous item in the playlist,

See also next(), jump(), and playbackMode().

int QMediaPlaylistNavigator::previousIndex ( int steps = 1 ) const

Returns a position steps behind the current position accounting for the playbackMode().

If the position is prior to the beginning of the playlist this will return -1.

See also currentIndex(), nextIndex(), and playbackMode().

QMediaContent QMediaPlaylistNavigator::previousItem ( int steps = 1 ) const

Returns the media that is steps positions behind the current position in the playlist.

See also previousIndex().

void QMediaPlaylistNavigator::setPlaylist ( QMediaPlaylistProvider * playlist )

Sets the playlist to navigate.

See also playlist().

void QMediaPlaylistNavigator::surroundingItemsChanged ()   [signal]

Signals that media immediately surrounding the current position has changed.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.1