From 8f75dc83f3c5a37f342d676c7bf9fe6e3cbfe3ac Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 20 Jun 2017 13:23:54 +0000 Subject: improved playlist manager api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7243 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmanager.cpp | 7 ++++++- src/qmmpui/playlistmanager.h | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/qmmpui') diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp index 2cc9b82a6..52f610791 100644 --- a/src/qmmpui/playlistmanager.cpp +++ b/src/qmmpui/playlistmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2015 by Ilya Kotov * + * Copyright (C) 2009-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -432,6 +432,11 @@ void PlayListManager::showDetails() m_selected->showDetails(); } +void PlayListManager::add(const QString &path) +{ + m_selected->add(path); +} + void PlayListManager::add(const QStringList &paths) { m_selected->add(paths); diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h index f593dd4b0..2f37d169d 100644 --- a/src/qmmpui/playlistmanager.h +++ b/src/qmmpui/playlistmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2015 by Ilya Kotov * + * Copyright (C) 2009-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -200,6 +200,10 @@ public slots: * This is a convenience function and is the same as calling \b selectedPlayList()->showDetails() */ void showDetails(); + /*! + * This is a convenience function and is the same as calling \b selectedPlayList()->add(path) + */ + void add(const QString &path); /*! * This is a convenience function and is the same as calling \b selectedPlayList()->add(paths) */ -- cgit v1.2.3-13-gbd6f