diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-20 11:57:25 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-20 11:57:25 +0000 |
| commit | 7b5e9960a11f35b3792d3417557fef5abc1ca876 (patch) | |
| tree | 69ee9a72fabbcf169d1b4b2eb7f3051d6c0d3e81 /src/qmmpui/playlistmodel.h | |
| parent | 025f0783a5bdc1fffb6dbf6149ca0bb68f12f12f (diff) | |
| download | qmmp-7b5e9960a11f35b3792d3417557fef5abc1ca876.tar.gz qmmp-7b5e9960a11f35b3792d3417557fef5abc1ca876.tar.bz2 qmmp-7b5e9960a11f35b3792d3417557fef5abc1ca876.zip | |
prepare for insert functions impelementation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3918 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 002ed5a4c..ce63a8157 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -311,9 +311,9 @@ signals: public slots: /*! - * Adds \b item to the playlist. + * Adds \b track to the playlist. */ - void add(PlayListTrack *item); + void add(PlayListTrack *track); /*! * Adds a list of items to the playlist. * @param items List of items. @@ -330,6 +330,26 @@ public slots: */ void add(const QStringList &paths); /*! + * Inserts \b track at index position \b index in the playlist. + */ + void insert(int index, PlayListTrack *track); + /*! + * Inserts \b tracks at index position \b index in the playlist. + */ + void insert(int index, QList <PlayListTrack *> tracks); + /*! + * Inserts file or directory at index position \b index in the playlist. + * @param path Full path of file or directory. + * @param index Position in the playlist. + */ + void insert(int index, const QString &path); + /*! + * Adds a list of files and directories at index position \b index in the playlist. + * @param paths Full paths of files and directories. + * @param index Position in the playlist. + */ + void insert(int index, const QStringList &paths); + /*! * Removes all items. */ void clear(); |
