The QMediaPlaylistNavigator class provides navigation for a media playlist. More...
#include <QMediaPlaylistNavigator>
Inherits: QObject.
This class was introduced in Qt Mobility 1.0.
QMediaPlaylistNavigator ( QMediaPlaylistProvider * playlist, QObject * parent = 0 ) | |
virtual | ~QMediaPlaylistNavigator () |
int | currentIndex () const |
QMediaContent | currentItem () const |
QMediaContent | itemAt ( int position ) const |
int | nextIndex ( int steps = 1 ) const |
QMediaContent | nextItem ( int steps = 1 ) const |
QMediaPlaylist::PlaybackMode | playbackMode () const |
QMediaPlaylistProvider * | playlist () const |
int | previousIndex ( int steps = 1 ) const |
QMediaContent | previousItem ( int steps = 1 ) const |
void | setPlaylist ( QMediaPlaylistProvider * playlist ) |
void | jump ( int position ) |
void | next () |
void | previous () |
void | setPlaybackMode ( QMediaPlaylist::PlaybackMode mode ) |
void | activated ( const QMediaContent & media ) |
void | currentIndexChanged ( int position ) |
void | playbackModeChanged ( QMediaPlaylist::PlaybackMode mode ) |
void | surroundingItemsChanged () |
The QMediaPlaylistNavigator class provides navigation for a media playlist.
See also QMediaPlaylist and QMediaPlaylistProvider.
Contains the position of the current media.
If no media is current, the property contains -1.
This property was introduced in Qt Mobility 1.0.
Access functions:
int | currentIndex () const |
void | jump ( int position ) |
Notifier signal:
void | currentIndexChanged ( int position ) |
See also nextIndex() and previousIndex().
Contains the media at the current position in the playlist.
This property was introduced in Qt Mobility 1.0.
Access functions:
QMediaContent | currentItem () const |
See also currentIndex().
Contains the playback mode.
This property was introduced in Qt Mobility 1.0.
Access functions:
QMediaPlaylist::PlaybackMode | playbackMode () const |
void | setPlaybackMode ( QMediaPlaylist::PlaybackMode mode ) |
Notifier signal:
void | playbackModeChanged ( QMediaPlaylist::PlaybackMode mode ) |
Constructs a media playlist navigator for a playlist.
The parent is passed to QObject.
This function was introduced in Qt Mobility 1.0.
Destroys a media playlist navigator.
Signals that the current media has changed.
This function was introduced in Qt Mobility 1.0.
Signals the position of the current media has changed.
This function was introduced in Qt Mobility 1.0.
Returns the media at a position in the playlist.
This function was introduced in Qt Mobility 1.0.
Advances to the next item in the playlist.
This function was introduced in Qt Mobility 1.0.
See also previous(), jump(), and playbackMode().
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.
This function was introduced in Qt Mobility 1.0.
See also currentIndex(), previousIndex(), and playbackMode().
Returns the media that is steps positions ahead of the current position in the playlist.
This function was introduced in Qt Mobility 1.0.
See also nextIndex().
Signals that the playback mode has changed.
This function was introduced in Qt Mobility 1.0.
Returns the playlist being navigated.
This function was introduced in Qt Mobility 1.0.
See also setPlaylist().
Returns to the previous item in the playlist,
This function was introduced in Qt Mobility 1.0.
See also next(), jump(), and playbackMode().
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.
This function was introduced in Qt Mobility 1.0.
See also currentIndex(), nextIndex(), and playbackMode().
Returns the media that is steps positions behind the current position in the playlist.
This function was introduced in Qt Mobility 1.0.
See also previousIndex().
Sets the playlist to navigate.
This function was introduced in Qt Mobility 1.0.
See also playlist().
Signals that media immediately surrounding the current position has changed.
This function was introduced in Qt Mobility 1.0.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.