diff options
author | Alex <qt-info@nokia.com> | 2009-11-19 16:51:09 +1000 |
---|---|---|
committer | Alex <qt-info@nokia.com> | 2009-11-19 16:51:09 +1000 |
commit | 62b3f8c161eabcdc9fdda92120bc12e8f1c3802c (patch) | |
tree | 19a17b81956f8535bf6166f53d2f7a9531c102fa /src/multimedia/qmediaplaylist.cpp | |
parent | 2825cf5f3eede8e41707e8ef7b7a0325dcdeda51 (diff) |
catch up with recent master changes
Diffstat (limited to 'src/multimedia/qmediaplaylist.cpp')
-rw-r--r-- | src/multimedia/qmediaplaylist.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/multimedia/qmediaplaylist.cpp b/src/multimedia/qmediaplaylist.cpp index 9a60c9e897..cf64eb06d4 100644 --- a/src/multimedia/qmediaplaylist.cpp +++ b/src/multimedia/qmediaplaylist.cpp @@ -271,7 +271,7 @@ QMediaContent QMediaPlaylist::media(int position) const } /*! - Append the list of media \a content to the playlist. + Append the media \a content to the playlist. Returns true if the operation is successfull, other wise return false. */ @@ -281,6 +281,16 @@ bool QMediaPlaylist::appendItem(const QMediaContent &content) } /*! + Append multiple media content \a items to the playlist. + + Returns true if the operation is successfull, other wise return false. + */ +bool QMediaPlaylist::appendItems(const QList<QMediaContent> &items) +{ + return d_func()->control->playlistProvider()->appendItems(items); +} + +/*! Insert the media \a content to the playlist at position \a pos. Returns true if the operation is successful, otherwise false. @@ -292,6 +302,17 @@ bool QMediaPlaylist::insertItem(int pos, const QMediaContent &content) } /*! + Insert multiple media content \a items to the playlist at position \a pos. + + Returns true if the operation is successful, otherwise false. +*/ + +bool QMediaPlaylist::insertItems(int pos, const QList<QMediaContent> &items) +{ + return d_func()->playlist()->insertItems(pos, items); +} + +/*! Remove the item from the playlist at position \a pos. Returns true if the operation is successfull, other wise return false. |