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