The QMediaPlaylistProvider class provides an abstract list of media. More...
#include <QMediaPlaylistProvider>
Inherits: QObject.
This class was introduced in Qt Mobility 1.0.
QMediaPlaylistProvider ( QObject * parent = 0 ) | |
virtual | ~QMediaPlaylistProvider () |
virtual bool | addMedia ( const QMediaContent & media ) |
virtual bool | addMedia ( const QList<QMediaContent> & items ) |
virtual bool | clear () |
virtual bool | insertMedia ( int position, const QMediaContent & media ) |
virtual bool | insertMedia ( int position, const QList<QMediaContent> & items ) |
virtual bool | isReadOnly () const |
virtual bool | load ( const QUrl & location, const char * format = 0 ) |
virtual bool | load ( QIODevice * device, const char * format = 0 ) |
virtual QMediaContent | media ( int index ) const = 0 |
virtual int | mediaCount () const = 0 |
virtual bool | removeMedia ( int position ) |
virtual bool | removeMedia ( int start, int end ) |
virtual bool | save ( const QUrl & location, const char * format = 0 ) |
virtual bool | save ( QIODevice * device, const char * format ) |
virtual void | shuffle () |
void | loadFailed ( QMediaPlaylist::Error error, const QString & errorMessage ) |
void | loaded () |
void | mediaAboutToBeInserted ( int start, int end ) |
void | mediaAboutToBeRemoved ( int start, int end ) |
void | mediaChanged ( int start, int end ) |
void | mediaInserted ( int start, int end ) |
void | mediaRemoved ( int start, int end ) |
The QMediaPlaylistProvider class provides an abstract list of media.
See also QMediaPlaylist.
Constructs a playlist provider with the given parent.
Destroys a playlist provider.
Append media to a playlist.
Returns true if the media was appended; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Append multiple media items to a playlist.
Returns true if the media items were appended; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Removes all media from a playlist.
Returns true if the media was removed; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Inserts media into a playlist at position.
Returns true if the media was inserted; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Inserts multiple media items into a playlist at position.
Returns true if the media items were inserted; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Returns true if a playlist is read-only; otherwise returns false.
This function was introduced in Qt Mobility 1.0.
Loads a playlist from from a URL location. If no playlist format is specified the loader will inspect the URL or probe the headers to guess the format.
New items are appended to playlist.
Returns true if the provider supports the format and loading from the locations URL protocol, otherwise this will return false.
This function was introduced in Qt Mobility 1.0.
Loads a playlist from from an I/O device. If no playlist format is specified the loader will probe the headers to guess the format.
New items are appended to playlist.
Returns true if the provider supports the format and loading from an I/O device, otherwise this will return false.
This function was introduced in Qt Mobility 1.0.
Signals that a load failed() due to an error. The errorMessage provides more information.
This function was introduced in Qt Mobility 1.0.
Signals that a load() finished successfully.
This function was introduced in Qt Mobility 1.0.
Returns the media at index in the playlist.
If the index is invalid this will return a null media content.
This function was introduced in Qt Mobility 1.0.
Signals that new media is about to be inserted into a playlist between the start and end positions.
This function was introduced in Qt Mobility 1.0.
Signals that media is about to be removed from a playlist between the start and end positions.
This function was introduced in Qt Mobility 1.0.
Signals that media in playlist between the start and end positions inclusive has changed.
This function was introduced in Qt Mobility 1.0.
Returns the size of playlist.
This function was introduced in Qt Mobility 1.0.
Signals that new media has been inserted into a playlist between the start and end positions.
This function was introduced in Qt Mobility 1.0.
Signals that media has been removed from a playlist between the start and end positions.
This function was introduced in Qt Mobility 1.0.
Removes the media at position from a playlist.
Returns true if the media was removed; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Removes the media between the given start and end positions from a playlist.
Returns true if the media was removed; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Saves the contents of a playlist to a URL location. If no playlist format is specified the writer will inspect the URL to guess the format.
Returns true if the playlist was saved successfully; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Saves the contents of a playlist to an I/O device in the specified format.
Returns true if the playlist was saved successfully; and false otherwise.
This function was introduced in Qt Mobility 1.0.
Shuffles the contents of a playlist.
This function was introduced in Qt Mobility 1.0.