![]() |
Mixxx
|
00001 // 00002 // C++ Interface: parserm3u 00003 // 00004 // Description: Interface header for the example parser ParserM3u 00005 // 00006 // 00007 // Author: Ingo Kossyk <kossyki@cs.tu-berlin.de>, (C) 2004 00008 // Author: Tobias Rafreider trafreider@mixxx.org, (C) 2011 00009 // 00010 // Copyright: See COPYING file that comes with this distribution 00011 // 00012 // 00013 #include "parser.h" 00014 00015 #ifndef PARSERM3U_H 00016 #define PARSERM3U_H 00017 00018 class QTextStream; 00019 00020 class ParserM3u : public Parser 00021 { 00022 Q_OBJECT 00023 public: 00024 ParserM3u(); 00025 ~ParserM3u(); 00027 QList<QString> parse(QString); 00028 //Playlist Export 00029 static bool writeM3UFile(const QString &file_str, QList<QString> &items, bool useRelativePath, bool useUtf8); 00030 static bool writeM3UFile(const QString &file, QList<QString> &items, bool useRelativePath); 00031 static bool writeM3U8File(const QString &file_str, QList<QString> &items, bool useRelativePath); 00032 00033 private: 00035 QString getFilepath(QTextStream *, QString); 00036 00037 00038 }; 00039 00040 #endif