The QMediaPlaylistControl class provides access to the playlist functionality of a QMediaService. More...
#include <QMediaPlaylistControl>
Inherits: QMediaControl.
This class was introduced in Qt Mobility 1.0.
virtual | ~QMediaPlaylistControl () |
virtual int | currentIndex () const = 0 |
virtual void | next () = 0 |
virtual int | nextIndex ( int step ) const = 0 |
virtual QMediaPlaylist::PlaybackMode | playbackMode () const = 0 |
virtual QMediaPlaylistProvider * | playlistProvider () const = 0 |
virtual void | previous () = 0 |
virtual int | previousIndex ( int step ) const = 0 |
virtual void | setCurrentIndex ( int position ) = 0 |
virtual void | setPlaybackMode ( QMediaPlaylist::PlaybackMode mode ) = 0 |
virtual bool | setPlaylistProvider ( QMediaPlaylistProvider * playlist ) = 0 |
void | currentIndexChanged ( int position ) |
void | currentMediaChanged ( const QMediaContent & content ) |
void | playbackModeChanged ( QMediaPlaylist::PlaybackMode mode ) |
void | playlistProviderChanged () |
QMediaPlaylistControl ( QObject * parent = 0 ) |
QMediaPlaylistControl_iid |
The QMediaPlaylistControl class provides access to the playlist functionality of a QMediaService.
If a QMediaService contains an internal playlist it will implement QMediaPlaylistControl. This control provides access to the contents of the playlist, as well as the position of the current media, and a means of navigating to the next and previous media.
The functionality provided by the control is exposed to application code through the QMediaPlaylist class.
The interface name of QMediaPlaylistControl is com.nokia.Qt.QMediaPlaylistControl/1.0 as defined in QMediaPlaylistControl_iid.
See also QMediaService::requestControl() and QMediaPlayer.
Create a new playlist control object with the given parent.
Destroys the playlist control.
Returns position of the current media source in the playlist.
This function was introduced in Qt Mobility 1.0.
See also setCurrentIndex().
Signal emitted when the playlist position is changed.
This function was introduced in Qt Mobility 1.0.
Signal emitted when current media changes to content.
This function was introduced in Qt Mobility 1.0.
Moves to the next item in playlist.
This function was introduced in Qt Mobility 1.0.
Returns the index of item, which were current after calling next() step times.
Returned value depends on the size of playlist, current position and playback mode.
This function was introduced in Qt Mobility 1.0.
See also QMediaPlaylist::playbackMode.
Returns the playlist navigation mode.
This function was introduced in Qt Mobility 1.0.
See also setPlaybackMode() and QMediaPlaylist::PlaybackMode.
Signal emitted when the playback mode is changed.
This function was introduced in Qt Mobility 1.0.
Returns the playlist used by this media player.
This function was introduced in Qt Mobility 1.0.
See also setPlaylistProvider().
Signal emitted when the playlist provider has changed.
This function was introduced in Qt Mobility 1.0.
Returns to the previous item in playlist.
This function was introduced in Qt Mobility 1.0.
Returns the index of item, which were current after calling previous() step times.
This function was introduced in Qt Mobility 1.0.
See also QMediaPlaylist::playbackMode.
Jump to the item at the given position.
This function was introduced in Qt Mobility 1.0.
See also currentIndex().
Sets the playback mode.
This function was introduced in Qt Mobility 1.0.
See also playbackMode() and QMediaPlaylist::PlaybackMode.
Set the playlist of this media player to playlist.
In many cases it is possible just to use the playlist constructed by player, but sometimes replacing the whole playlist allows to avoid copyting of all the items bettween playlists.
Returns true if player can use this passed playlist; otherwise returns false.
This function was introduced in Qt Mobility 1.0.
See also playlistProvider().
com.nokia.Qt.QMediaPlaylistControl/1.0
Defines the interface name of the QMediaPlaylistControl class.
© 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.