aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
-rw-r--r--src/qmmpui/playlistmodel.h24
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();