File indexing completed on 2024-05-19 04:49:30

0001 /****************************************************************************************
0002  * Copyright (c) 2007 Bart Cerneels <bart.cerneels@kde.org>                             *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 #include "core/meta/Meta.h"
0018 #include "core/playlists/PlaylistProvider.h"
0019 
0020 using namespace Playlists;
0021 
0022 PlaylistProvider::PlaylistProvider( QObject *parent)
0023     : QObject( parent )
0024 {
0025 }
0026 
0027 QActionList
0028 PlaylistProvider::providerActions()
0029 {
0030     return QActionList();
0031 }
0032 
0033 QActionList
0034 PlaylistProvider::playlistActions( const PlaylistList & )
0035 {
0036     return QActionList();
0037 
0038 }
0039 
0040 QActionList
0041 PlaylistProvider::trackActions( const QMultiHash<PlaylistPtr, int> & )
0042 {
0043     return QActionList();
0044 }
0045 
0046 bool
0047 PlaylistProvider::isWritable()
0048 {
0049     return false;
0050 }
0051 
0052 PlaylistPtr
0053 PlaylistProvider::addPlaylist(PlaylistPtr)
0054 {
0055     return PlaylistPtr();
0056 }
0057 
0058 void
0059 PlaylistProvider::renamePlaylist(PlaylistPtr, const QString & )
0060 {
0061 }
0062 
0063 bool
0064 PlaylistProvider::deletePlaylists( const PlaylistList & )
0065 {
0066     return false;
0067 }
0068 
0069 Meta::TrackPtr
0070 PlaylistProvider::addTrack( const Meta::TrackPtr &)
0071 {
0072     return Meta::TrackPtr();
0073 }