File indexing completed on 2025-01-19 04:24:39

0001 /****************************************************************************************
0002  * Copyright (c) 2008 Nikolaj Hald Nielsen <nhn@kde.org>                                *
0003  * Copyright (c) 2008 Bart Cerneels <bart.cerneels@kde.org>                             *
0004  * Copyright (c) 2012 Ralf Engels <ralf-engels@gmx.de>                                  *
0005  *                                                                                      *
0006  * This program is free software; you can redistribute it and/or modify it under        *
0007  * the terms of the GNU General Public License as published by the Free Software        *
0008  * Foundation; either version 2 of the License, or (at your option) any later           *
0009  * version.                                                                             *
0010  *                                                                                      *
0011  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0012  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0013  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0014  *                                                                                      *
0015  * You should have received a copy of the GNU General Public License along with         *
0016  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0017  ****************************************************************************************/
0018 
0019 #ifndef USERPLAYLISTPROVIDER_H
0020 #define USERPLAYLISTPROVIDER_H
0021 
0022 #include "amarok_export.h"
0023 #include "core/playlists/PlaylistProvider.h"
0024 
0025 namespace Playlists {
0026     /**
0027      * @author Bart Cerneels <bart.cerneels@kde.org>
0028      */
0029     class AMAROK_EXPORT UserPlaylistProvider : public PlaylistProvider
0030     {
0031         Q_OBJECT
0032 
0033         public:
0034             explicit UserPlaylistProvider( QObject *parent = nullptr );
0035 
0036             /* PlaylistProvider functions */
0037             int category() const override;
0038 
0039             /* UserPlaylistProvider functions */
0040             virtual PlaylistPtr save( const Meta::TrackList &tracks,
0041                                       const QString &name = QString() ) = 0;
0042     };
0043 } //namespace Playlists
0044 
0045 #endif