diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-04-29 11:11:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-04-29 11:11:54 +0000 |
| commit | b44d843f24cd7c2f8dd4cd76b5385507dc7b02b8 (patch) | |
| tree | d8a1d0b7ebaa52c70bc570d75f5e48517c5ceba2 /src/qmmpui/playlistmodel.h | |
| parent | ba0f4e2d0e07d46229335e4b06a6c14d252a9bcd (diff) | |
| download | qmmp-b44d843f24cd7c2f8dd4cd76b5385507dc7b02b8.tar.gz qmmp-b44d843f24cd7c2f8dd4cd76b5385507dc7b02b8.tar.bz2 qmmp-b44d843f24cd7c2f8dd4cd76b5385507dc7b02b8.zip | |
fixed api documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4270 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index d73f5f441..63eb9fc77 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -127,7 +127,13 @@ public: * Returns the item with the index \b index or 0 if item doesn't exist. */ PlayListItem* item(int index) const; + /*! + * Returns the track with the index \b index or 0 if track doesn't exist. + */ PlayListTrack* track(int index) const; + /*! + * Returns the group with the index \b index or 0 if group doesn't exist. + */ PlayListGroup* group(int index) const; /*! * Returns index of the current item. @@ -144,12 +150,16 @@ public: * Returns \b true if success, otherwise returns \b false */ bool setCurrent(PlayListTrack *item); - - + /*! + * Returns \b true if a playlist contains track with the index \b index. + * Otherwise returns \b false. + */ bool isTrack(int index) const; - + /*! + * Returns \b true if a playlist contains group separator with the index \b index. + * Otherwise returns \b false. + */ bool isGroup(int index) const; - /*! * Returns \b true if item with \b index is selected, otherwise returns \b false */ @@ -160,10 +170,17 @@ public: * @param selected Selection state (\b true - select, \b false - unselect) */ void setSelected(int index, bool selected = true); - - + /*! + * Sets the selected state of the list of tracks to \b select + * @param tracks List of tracks. + * @param selected Selection state (\b true - select, \b false - unselect) + */ void setSelected(QList<PlayListTrack *> tracks, bool selected = true); - + /*! + * Sets the selected state of the list of items to \b select + * @param items List of items. + * @param selected Selection state (\b true - select, \b false - unselect) + */ void setSelected(QList<PlayListItem *> items, bool selected = true); /*! * Advances to the next item. Returns \b false if next iten doesn't exist, @@ -271,7 +288,10 @@ public: FILE_MODIFICATION_DATE, /*!< by file modification date */ GROUP /*!< by group name */ }; - + /*! + * Returns number of track with index \b index. + * Returns \b -1 if track with index \b index does not exist. + */ int numberOfTrack(int index) const; signals: @@ -308,8 +328,8 @@ public slots: */ void add(PlayListTrack *track); /*! - * Adds a list of items to the playlist. - * @param items List of items. + * Adds a list of tracks to the playlist. + * @param tracks List of tracks. */ void add(QList <PlayListTrack *> tracks); /*! @@ -326,7 +346,9 @@ public slots: * Inserts \b track at index position \b index in the playlist. */ void insert(int index, PlayListTrack *track); - + /*! + * Inserts \b track after playlist item \b before. + */ void insert(PlayListItem *before, PlayListTrack *track); /*! * Inserts \b tracks at index position \b index in the playlist. @@ -346,7 +368,7 @@ public slots: void insert(int index, const QStringList &paths); /*! * Adds a list of URLs at index position \b index in the playlist. - * @param paths urls a list of URLs. + * @param urls A list of URLs. * @param index Position in the playlist. */ void insert(int index, const QList<QUrl> &urls); |
