File indexing completed on 2024-05-19 15:52:41

0001 /****************************************************************************************
0002  * Copyright (c) 2007 Ian Monroe <ian@monroe.nu>                                        *
0003  *           (c) 2010 Jeff Mitchell <mitchell@kde.org>                                  *
0004  *                                                                                      *
0005  * This program is free software; you can redistribute it and/or modify it under        *
0006  * the terms of the GNU General Public License as published by the Free Software        *
0007  * Foundation; either version 2 of the License, or (at your option) any later           *
0008  * version.                                                                             *
0009  *                                                                                      *
0010  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0012  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0013  *                                                                                      *
0014  * You should have received a copy of the GNU General Public License along with         *
0015  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0016  ****************************************************************************************/
0017 
0018 #ifndef AMAROK_PLAYLISTFORMAT_H
0019 #define AMAROK_PLAYLISTFORMAT_H
0020 
0021 #include "core/amarokcore_export.h"
0022 
0023 #include <QUrl>
0024 
0025 
0026 namespace Playlists
0027 {
0028     enum PlaylistFormat
0029     {
0030         M3U,
0031         PLS,
0032         XML,
0033         RAM,
0034         SMIL,
0035         ASX,
0036         XSPF,
0037         Unknown,
0038         NotPlaylist = Unknown
0039     };
0040 
0041     AMAROKCORE_EXPORT PlaylistFormat getFormat( const QUrl &path );
0042     AMAROKCORE_EXPORT bool isPlaylist( const QUrl &path );
0043 }
0044 
0045 #endif