diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 17:59:44 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 17:59:44 +0000 |
| commit | 542c1d2d3a26ce23b1d0668011b420db231334d2 (patch) | |
| tree | 412aa9a141d5500c38f547945fbb8f4fc5553caf /src/qmmpui/playlistmodel.h | |
| parent | 677943a044c8dbbc17e3936d5f13471db280bf56 (diff) | |
| download | qmmp-542c1d2d3a26ce23b1d0668011b420db231334d2.tar.gz qmmp-542c1d2d3a26ce23b1d0668011b420db231334d2.tar.bz2 qmmp-542c1d2d3a26ce23b1d0668011b420db231334d2.zip | |
prepare for duplicates search
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1618 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index c26572fe4..d61dea152 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -108,8 +108,13 @@ public: * Object destructor. */ ~PlayListModel(); - + /*! + * Returns playlist name. + */ QString name() const; + /*! + * Sets the name of the playlist to \b name. + */ void setName(const QString &name); /*! * Returns number of items. @@ -119,7 +124,9 @@ public: * Returns the current item. */ PlayListItem* currentItem(); - + /*! + * Returns the next playing item or 0 if next item is unknown. + */ PlayListItem* nextItem(); /*! * Returns the row of the \b item @@ -249,6 +256,10 @@ public: */ bool isShuffle() const; /*! + * Returns \b true if the playlist contains an item with URL \b url; otherwise returns \b false. + */ + bool contains(const QString &url); + /*! * Enum of available sort modes */ enum SortMode @@ -388,7 +399,11 @@ public slots: /*! * Removes invalid items from playlist */ - void clearInvalidItems(); + void removeInvalidItems(); + /*! + * Removes duplicate items by URL. + */ + //void removeDuplicates(); private: /*! |
