2
// C++ Interface: parser
4
// Description: Interface header for the parser Parser
7
// Author: Ingo Kossyk <kossyki@cs.tu-berlin.de>, (C) 2004
8
// Author: Tobias Rafreider trafreider@mixxx.org, (C) 2011
10
// Copyright: See COPYING file that comes with this distribution
17
/**Developer Information:
18
This is the rootclass for all parser classes for the Importer class.
19
It can be used to write a new type-specific parser by deriving a new class
20
from it and overwrite the parse function and add class specific functions to
21
it afterwards fro proper functioning
29
class Parser : public QObject
34
/**Can be called to parse a pls file
36
This function should return an empty PtrList
37
or 0 in order for the trackimporter to function**/
38
virtual QList<QString> parse(QString) = 0;
42
/**Pointer to the parsed Filelocations**/
43
QList<QString> m_sLocations;
44
/**Returns the number of parsed locations**/
46
/**Clears m_psLocations**/
47
void clearLocations();
48
/**Checks if the file does contain binary content**/
49
bool isBinary(QString);
50
/**Checks if the given string represents a local filepath**/
51
bool isFilepath(QString );
52
// check for Utf8 encoding
53
static bool isUtf8(const char* string);